mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
Lint fix
This commit is contained in:
parent
d01fccd949
commit
777d9ac353
4 changed files with 5 additions and 5 deletions
|
@ -75,7 +75,7 @@ BlazeComponent.extendComponent({
|
|||
lastLabel(){
|
||||
const lastLabelId = this.currentData().labelId;
|
||||
if (!lastLabelId)
|
||||
return;
|
||||
return null;
|
||||
const lastLabel = Boards.findOne(Session.get('currentBoard')).getLabelById(lastLabelId);
|
||||
if(lastLabel.name === undefined || lastLabel.name === ''){
|
||||
return lastLabel.color;
|
||||
|
|
|
@ -126,8 +126,8 @@ const CreateCustomFieldPopup = BlazeComponent.extendComponent({
|
|||
if (customField.boardIds.length > 1) {
|
||||
CustomFields.update(customField._id, {
|
||||
$pull: {
|
||||
boardIds: Session.get('currentBoard')
|
||||
}
|
||||
boardIds: Session.get('currentBoard'),
|
||||
},
|
||||
});
|
||||
} else {
|
||||
CustomFields.remove(customField._id);
|
||||
|
|
|
@ -1332,7 +1332,7 @@ function updateActivities(doc, fieldNames, modifier) {
|
|||
$set: {
|
||||
labelId: modifier.$set.labelIds[doc.labelIds.indexOf(a.labelId)],
|
||||
boardId: modifier.$set.boardId,
|
||||
}
|
||||
},
|
||||
});
|
||||
} else {
|
||||
Activities.remove(a._id);
|
||||
|
|
|
@ -533,7 +533,7 @@ Migrations.add('mutate-boardIds-in-customfields', () => {
|
|||
boardIds: [cf.boardId],
|
||||
},
|
||||
$unset: {
|
||||
boardId: "",
|
||||
boardId: '',
|
||||
},
|
||||
}, noValidateMulti);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue