mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04: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(
|
||||
lastLabelId,
|
||||
);
|
||||
if (lastLabel.name === undefined || lastLabel.name === '') {
|
||||
if (lastLabel && (lastLabel.name === undefined || lastLabel.name === '')) {
|
||||
return lastLabel.color;
|
||||
} else {
|
||||
return lastLabel.name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue