Przeglądaj źródła

hotfix public board

Ignatz 7 lat temu
rodzic
commit
8ec60879dc
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      client/components/boards/boardBody.js

+ 2 - 0
client/components/boards/boardBody.js

@@ -88,11 +88,13 @@ BlazeComponent.extendComponent({
 
   isViewSwimlanes() {
     const currentUser = Meteor.user();
+    if (!currentUser) return false;
     return (currentUser.profile.boardView === 'board-view-swimlanes');
   },
 
   isViewLists() {
     const currentUser = Meteor.user();
+    if (!currentUser) return true;
     return (currentUser.profile.boardView === 'board-view-lists');
   },