mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Merge pull request #2657 from justinr1234/patch-6
Fix last label undefined
This commit is contained in:
commit
828822daad
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