mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 05:27:14 -04:00
fix error when the sidebar is not visible
This commit is contained in:
parent
db1cf5bb64
commit
446e29e422
1 changed files with 5 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue