mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01: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() {
|
calculateNextPeak() {
|
||||||
const altitude = this.find('.js-board-sidebar-content').scrollHeight;
|
const sidebarElement = this.find('.js-board-sidebar-content');
|
||||||
this.callFirstWith(this, 'setNextPeak', altitude);
|
if (sidebarElement) {
|
||||||
|
const altitude = sidebarElement.scrollHeight;
|
||||||
|
this.callFirstWith(this, 'setNextPeak', altitude);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
reachNextPeak() {
|
reachNextPeak() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue