Browse Source

Fix an exception introduced in 41b23f8

Maxime Quandalle 9 năm trước cách đây
mục cha
commit
f9cbc1da4c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      client/components/boards/boardBody.js

+ 2 - 1
client/components/boards/boardBody.js

@@ -45,7 +45,8 @@ BlazeComponent.extendComponent({
   },
 
   scrollLeft(position = 0) {
-    this.$('.js-lists').animate({
+    const lists = this.$('.js-lists');
+    lists && lists.animate({
       scrollLeft: position,
     });
   },