Explorar o código

Merge branch 'PDIS-master'

Lauri Ojansivu %!s(int64=6) %!d(string=hai) anos
pai
achega
8c6164f590
Modificáronse 1 ficheiros con 10 adicións e 6 borrados
  1. 10 6
      client/components/lists/listBody.js

+ 10 - 6
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() {