summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar
diff options
context:
space:
mode:
authorRomulus Urakagi Tsai <urakagi@gmail.com>2019-08-14 08:42:25 +0000
committerRomulus Urakagi Tsai <urakagi@gmail.com>2019-08-14 08:42:25 +0000
commit3084f242784e9d860789c153dc6456b1aba16d96 (patch)
treea5f4977970178acd92736577268dc8d9065a619c /client/components/sidebar
parentefdab37f3faeb125a9b8d31969762932bbbc0c4b (diff)
parent43d14f8b2b25c2b4b536f747a151b92a7bb014f0 (diff)
downloadwekan-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.js7
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() {