瀏覽代碼

Fix an exception introduced in 41b23f8

Maxime Quandalle 9 年之前
父節點
當前提交
f9cbc1da4c
共有 1 個文件被更改,包括 2 次插入1 次删除
  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,
     });
   },