Use utility function instead of Session.get

This commit is contained in:
Nadav Tasher 2024-12-07 20:37:11 +02:00
parent eb3377deb8
commit 52a02409f0

View file

@ -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'),