Преглед на файлове

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,