瀏覽代碼

Use utility function instead of Session.get

Nadav Tasher 6 月之前
父節點
當前提交
52a02409f0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/components/boards/boardHeader.js

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

@@ -78,7 +78,7 @@ BlazeComponent.extendComponent({
           ReactiveCache.getCurrentUser().toggleBoardStar(Session.get('currentBoard'));
         },
         'click .js-auto-width-board'() {
-          ReactiveCache.getCurrentUser().toggleAutoWidth(Session.get('currentBoard'));
+          ReactiveCache.getCurrentUser().toggleAutoWidth(Utils.getCurrentBoardId());
         },
         'click .js-open-board-menu': Popup.open('boardMenu'),
         'click .js-change-visibility': Popup.open('boardChangeVisibility'),