Procházet zdrojové kódy

possible quickfix for all customFields Import errors

Ignatz před 7 roky
rodič
revize
0195044ba1
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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,