소스 검색

Fixed Linked card makes board not load when CustomField definition is undefined.

Thanks to olivierlambert and xet7 !

Fixes #3367
Lauri Ojansivu 4 년 전
부모
커밋
0d5f33299e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/cards.js

+ 1 - 1
models/cards.js

@@ -693,7 +693,7 @@ Cards.helpers({
       const definition = definitions.find(definition => {
         return definition._id === customField._id;
       });
-      if (!definition) {
+      if (definition === undefined) {
         return {};
       }
       //search for "True Value" which is for DropDowns other then the Value (which is the id)