Browse Source

Revert "Use utility function is autoWidth function"

This reverts commit c06bcac9f3d9fd690097d63235c61cbee890bb66.
Nadav Tasher 6 tháng trước cách đây
mục cha
commit
eb3377deb8
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      client/components/lists/list.js

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

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