diff options
author | Romulus Urakagi Tsai <urakagi@gmail.com> | 2019-08-14 08:42:25 +0000 |
---|---|---|
committer | Romulus Urakagi Tsai <urakagi@gmail.com> | 2019-08-14 08:42:25 +0000 |
commit | 3084f242784e9d860789c153dc6456b1aba16d96 (patch) | |
tree | a5f4977970178acd92736577268dc8d9065a619c /client/components/sidebar | |
parent | efdab37f3faeb125a9b8d31969762932bbbc0c4b (diff) | |
parent | 43d14f8b2b25c2b4b536f747a151b92a7bb014f0 (diff) | |
download | wekan-3084f242784e9d860789c153dc6456b1aba16d96.tar.gz wekan-3084f242784e9d860789c153dc6456b1aba16d96.tar.bz2 wekan-3084f242784e9d860789c153dc6456b1aba16d96.zip |
Merge branch 'master' of https://github.com/wekan/wekan
Diffstat (limited to 'client/components/sidebar')
-rw-r--r-- | client/components/sidebar/sidebar.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js index 8b98fd7e..f7efb1e8 100644 --- a/client/components/sidebar/sidebar.js +++ b/client/components/sidebar/sidebar.js @@ -47,8 +47,11 @@ BlazeComponent.extendComponent({ }, calculateNextPeak() { - const altitude = this.find('.js-board-sidebar-content').scrollHeight; - this.callFirstWith(this, 'setNextPeak', altitude); + const sidebarElement = this.find('.js-board-sidebar-content'); + if (sidebarElement) { + const altitude = sidebarElement.scrollHeight; + this.callFirstWith(this, 'setNextPeak', altitude); + } }, reachNextPeak() { |