diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-08-26 22:34:35 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-08-26 22:34:35 +0300 |
commit | 8c6164f5907df22e688b21ac5ea9572a5102f95f (patch) | |
tree | ae3f06872ba5e02b8c8f50cc868223fe6e646bf9 | |
parent | bbb9815c30d1986fe55a7813a7c49856ffd5111c (diff) | |
parent | 9bbeb73db1cd0ce1caaaca8dfb14ea92131bbf9d (diff) | |
download | wekan-8c6164f5907df22e688b21ac5ea9572a5102f95f.tar.gz wekan-8c6164f5907df22e688b21ac5ea9572a5102f95f.tar.bz2 wekan-8c6164f5907df22e688b21ac5ea9572a5102f95f.zip |
Merge branch 'PDIS-master'
-rw-r--r-- | client/components/lists/listBody.js | 16 |
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() { |