mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fix last label undefined
This commit is contained in:
parent
7cffce972d
commit
0cf9a7b552
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ BlazeComponent.extendComponent({
|
||||||
const lastLabel = Boards.findOne(Session.get('currentBoard')).getLabelById(
|
const lastLabel = Boards.findOne(Session.get('currentBoard')).getLabelById(
|
||||||
lastLabelId,
|
lastLabelId,
|
||||||
);
|
);
|
||||||
if (lastLabel.name === undefined || lastLabel.name === '') {
|
if (lastLabel && (lastLabel.name === undefined || lastLabel.name === '')) {
|
||||||
return lastLabel.color;
|
return lastLabel.color;
|
||||||
} else {
|
} else {
|
||||||
return lastLabel.name;
|
return lastLabel.name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue