瀏覽代碼

custom fields upgrade -- correct

Nunes Nelson 6 年之前
父節點
當前提交
f2dd725eff
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      client/components/lists/listBody.js

+ 3 - 3
client/components/lists/listBody.js

@@ -156,11 +156,11 @@ BlazeComponent.extendComponent({
     this.customFields = new ReactiveVar([]);
 
     const currentBoardId = Session.get('currentBoard');
-    arr = []
+    arr = [];
     _.forEach(Boards.findOne(currentBoardId).customFields().fetch(), function(field){
       if(field.automaticallyOnCard)
-        arr.push({_id: field._id, value: null,})
-    })
+        arr.push({_id: field._id, value: null});
+    });
     this.customFields.set(arr);
   },