mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Fix getLabels exception
This commit is contained in:
parent
d6b0b0318d
commit
27ee16ea1e
1 changed files with 6 additions and 3 deletions
|
@ -277,9 +277,12 @@ BlazeComponent.extendComponent({
|
|||
|
||||
getLabels() {
|
||||
const currentBoardId = Session.get('currentBoard');
|
||||
return Boards.findOne(currentBoardId).labels.filter(label => {
|
||||
return this.labels.get().indexOf(label._id) > -1;
|
||||
});
|
||||
if (Boards.findOne(currentBoardId).labels) {
|
||||
return Boards.findOne(currentBoardId).labels.filter(label => {
|
||||
return this.labels.get().indexOf(label._id) > -1;
|
||||
});
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
pressKey(evt) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue