浏览代码

Use utility function is autoWidth function

Nadav Tasher 6 月之前
父节点
当前提交
c06bcac9f3
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      client/components/lists/list.js

+ 1 - 3
client/components/lists/list.js

@@ -208,9 +208,7 @@ BlazeComponent.extendComponent({
   },
 
   autoWidth() {
-    const user = ReactiveCache.getCurrentUser();
-    const list = Template.currentData();
-    return user.isAutoWidth(list.boardId);
+    return user.isAutoWidth(Utils.getCurrentBoardId());
   },
 }).register('list');