summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-08-26 22:34:35 +0300
committerLauri Ojansivu <x@xet7.org>2019-08-26 22:34:35 +0300
commit8c6164f5907df22e688b21ac5ea9572a5102f95f (patch)
treeae3f06872ba5e02b8c8f50cc868223fe6e646bf9 /client
parentbbb9815c30d1986fe55a7813a7c49856ffd5111c (diff)
parent9bbeb73db1cd0ce1caaaca8dfb14ea92131bbf9d (diff)
downloadwekan-8c6164f5907df22e688b21ac5ea9572a5102f95f.tar.gz
wekan-8c6164f5907df22e688b21ac5ea9572a5102f95f.tar.bz2
wekan-8c6164f5907df22e688b21ac5ea9572a5102f95f.zip
Merge branch 'PDIS-master'
Diffstat (limited to 'client')
-rw-r--r--client/components/lists/listBody.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 7d9e358b..a1a4c11a 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -701,12 +701,16 @@ BlazeComponent.extendComponent({
this.listId = this.parentComponent().data()._id;
this.swimlaneId = '';
- const boardView = (Meteor.user().profile || {}).boardView;
- if (boardView === 'board-view-swimlanes')
- this.swimlaneId = this.parentComponent()
- .parentComponent()
- .parentComponent()
- .data()._id;
+ let user = Meteor.user();
+ if (user) {
+ const boardView = (Meteor.user().profile || {}).boardView;
+ if (boardView === 'board-view-swimlanes') {
+ this.swimlaneId = this.parentComponent()
+ .parentComponent()
+ .parentComponent()
+ .data()._id;
+ }
+ }
},
onRendered() {