Browse Source

Replace Session.get with utility call

Nadav Tasher 6 months ago
parent
commit
d1e2db9cb8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/components/boards/boardHeader.js

+ 1 - 1
client/components/boards/boardHeader.js

@@ -39,7 +39,7 @@ BlazeComponent.extendComponent({
   },
   },
 
 
   isAutoWidth() {
   isAutoWidth() {
-    const boardId = Session.get('currentBoard');
+    const boardId = Utils.getCurrentBoardId();
     const user = ReactiveCache.getCurrentUser();
     const user = ReactiveCache.getCurrentUser();
     return user && user.isAutoWidth(boardId);
     return user && user.isAutoWidth(boardId);
   },
   },