Try to fix Bug: Card number equal to #0 when creating a sub-task from a card.

Thanks to marcungeschikts, olivierlambert and xet7 !

Fixes #3970
This commit is contained in:
Lauri Ojansivu 2021-09-21 22:46:32 +03:00 committed by Emile NDAGIJIMANA
parent dd58698cef
commit 0b02e88ee3

View file

@ -113,8 +113,10 @@ BlazeComponent.extendComponent({
).getLabelById(lastLabelId);
if (lastLabel && (lastLabel.name === undefined || lastLabel.name === '')) {
return lastLabel.color;
} else {
} else if (lastLabel.name !== undefined && lastLabel.name !== '') {
return lastLabel.name;
} else {
return null;
}
},