소스 검색

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);
   },