summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-08-26 22:13:28 +0300
committerGitHub <noreply@github.com>2019-08-26 22:13:28 +0300
commit828822daad8810ba0f01710560fe84b1ead103cf (patch)
treeffa0115c7f73c8a566e57cee6913ec8348ba39e6
parent7cffce972df0c016e7228e4bbff66e5702ebdd50 (diff)
parent0cf9a7b552a8036158d5b158f875057b9aaf5fc0 (diff)
downloadwekan-828822daad8810ba0f01710560fe84b1ead103cf.tar.gz
wekan-828822daad8810ba0f01710560fe84b1ead103cf.tar.bz2
wekan-828822daad8810ba0f01710560fe84b1ead103cf.zip
Merge pull request #2657 from justinr1234/patch-6
Fix last label undefined
-rw-r--r--client/components/activities/activities.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js
index 05149826..b082273a 100644
--- a/client/components/activities/activities.js
+++ b/client/components/activities/activities.js
@@ -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;