Przeglądaj źródła

possible quickfix for all customFields Import errors

Ignatz 7 lat temu
rodzic
commit
0195044ba1
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      models/cards.js

+ 1 - 0
models/cards.js

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