浏览代码

possible quickfix for all customFields Import errors

Ignatz 7 年之前
父节点
当前提交
0195044ba1
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      models/cards.js

+ 1 - 0
models/cards.js

@@ -220,6 +220,7 @@ Cards.helpers({
     }).fetch();
 
     // match right definition to each field
+    if (!this.customFields) return [];
     return this.customFields.map((customField) => {
       return {
         _id: customField._id,