summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomulus Urakagi Tsai <urakagi@gmail.com>2019-08-26 10:10:57 +0000
committerRomulus Urakagi Tsai <urakagi@gmail.com>2019-08-26 10:10:57 +0000
commit9bbeb73db1cd0ce1caaaca8dfb14ea92131bbf9d (patch)
tree9fd8b82a53dfbafb3efb6551c9fd6d6d56fc5ec2
parentff419f0b602ba1a2cc399270ea15f322c67f3249 (diff)
downloadwekan-9bbeb73db1cd0ce1caaaca8dfb14ea92131bbf9d.tar.gz
wekan-9bbeb73db1cd0ce1caaaca8dfb14ea92131bbf9d.tar.bz2
wekan-9bbeb73db1cd0ce1caaaca8dfb14ea92131bbf9d.zip
Fix app hang when Meteor.user() is null and list spinner is loaded bug
-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() {