Browse Source

Fix an exception introduced in 41b23f8

Maxime Quandalle 9 years ago
parent
commit
f9cbc1da4c
1 changed files with 2 additions and 1 deletions
  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,
     });
   },