diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2019-03-16 23:15:30 +0100 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2019-03-16 23:15:30 +0100 |
commit | 777d9ac35320cbfdd8d90136b176d4a3e69e74be (patch) | |
tree | 19d1196ba9814909c7b1427e2db03f9807a67e0b | |
parent | d01fccd9497120613bf2c0b986963e67e7f3d6fa (diff) | |
download | wekan-777d9ac35320cbfdd8d90136b176d4a3e69e74be.tar.gz wekan-777d9ac35320cbfdd8d90136b176d4a3e69e74be.tar.bz2 wekan-777d9ac35320cbfdd8d90136b176d4a3e69e74be.zip |
Lint fix
-rw-r--r-- | client/components/activities/activities.js | 2 | ||||
-rw-r--r-- | client/components/sidebar/sidebarCustomFields.js | 4 | ||||
-rw-r--r-- | models/cards.js | 2 | ||||
-rw-r--r-- | server/migrations.js | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js index cbdd776e..0476897f 100644 --- a/client/components/activities/activities.js +++ b/client/components/activities/activities.js @@ -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; diff --git a/client/components/sidebar/sidebarCustomFields.js b/client/components/sidebar/sidebarCustomFields.js index 81147ce5..28af973b 100644 --- a/client/components/sidebar/sidebarCustomFields.js +++ b/client/components/sidebar/sidebarCustomFields.js @@ -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); diff --git a/models/cards.js b/models/cards.js index c234ab37..2bf83825 100644 --- a/models/cards.js +++ b/models/cards.js @@ -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); diff --git a/server/migrations.js b/server/migrations.js index ced67218..09852495 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -533,7 +533,7 @@ Migrations.add('mutate-boardIds-in-customfields', () => { boardIds: [cf.boardId], }, $unset: { - boardId: "", + boardId: '', }, }, noValidateMulti); }); |