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

Thanks to olivierlambert and xet7 !

Fixes #3367
This commit is contained in:
Lauri Ojansivu 2021-01-18 13:43:53 +02:00
parent 78f818bbb0
commit 0d5f33299e

View file

@ -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)