Andrés Manelli 6 năm trước cách đây
mục cha
commit
777d9ac353

+ 1 - 1
client/components/activities/activities.js

@@ -75,7 +75,7 @@ BlazeComponent.extendComponent({
   lastLabel(){
   lastLabel(){
     const lastLabelId = this.currentData().labelId;
     const lastLabelId = this.currentData().labelId;
     if (!lastLabelId)
     if (!lastLabelId)
-      return;
+      return null;
     const lastLabel = Boards.findOne(Session.get('currentBoard')).getLabelById(lastLabelId);
     const lastLabel = Boards.findOne(Session.get('currentBoard')).getLabelById(lastLabelId);
     if(lastLabel.name === undefined || lastLabel.name === ''){
     if(lastLabel.name === undefined || lastLabel.name === ''){
       return lastLabel.color;
       return lastLabel.color;

+ 2 - 2
client/components/sidebar/sidebarCustomFields.js

@@ -126,8 +126,8 @@ const CreateCustomFieldPopup = BlazeComponent.extendComponent({
         if (customField.boardIds.length > 1) {
         if (customField.boardIds.length > 1) {
           CustomFields.update(customField._id, {
           CustomFields.update(customField._id, {
             $pull: {
             $pull: {
-              boardIds: Session.get('currentBoard')
-            }
+              boardIds: Session.get('currentBoard'),
+            },
           });
           });
         } else {
         } else {
           CustomFields.remove(customField._id);
           CustomFields.remove(customField._id);

+ 1 - 1
models/cards.js

@@ -1332,7 +1332,7 @@ function updateActivities(doc, fieldNames, modifier) {
           $set: {
           $set: {
             labelId: modifier.$set.labelIds[doc.labelIds.indexOf(a.labelId)],
             labelId: modifier.$set.labelIds[doc.labelIds.indexOf(a.labelId)],
             boardId: modifier.$set.boardId,
             boardId: modifier.$set.boardId,
-          }
+          },
         });
         });
       } else {
       } else {
         Activities.remove(a._id);
         Activities.remove(a._id);

+ 1 - 1
server/migrations.js

@@ -533,7 +533,7 @@ Migrations.add('mutate-boardIds-in-customfields', () => {
         boardIds: [cf.boardId],
         boardIds: [cf.boardId],
       },
       },
       $unset: {
       $unset: {
-        boardId: "",
+        boardId: '',
       },
       },
     }, noValidateMulti);
     }, noValidateMulti);
   });
   });