This commit is contained in:
Andrés Manelli 2019-03-16 23:15:30 +01:00
parent d01fccd949
commit 777d9ac353
4 changed files with 5 additions and 5 deletions

View file

@ -75,7 +75,7 @@ BlazeComponent.extendComponent({
lastLabel(){
const lastLabelId = this.currentData().labelId;
if (!lastLabelId)
return;
return null;
const lastLabel = Boards.findOne(Session.get('currentBoard')).getLabelById(lastLabelId);
if(lastLabel.name === undefined || lastLabel.name === ''){
return lastLabel.color;