Fix app hang when Meteor.user() is null and list spinner is loaded bug

This commit is contained in:
Romulus Urakagi Tsai 2019-08-26 10:10:57 +00:00
parent ff419f0b60
commit 9bbeb73db1

View file

@ -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() {