mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Merge pull request #2609 from Trekky12/master
fix error when the sidebar is not visible
This commit is contained in:
commit
b5f74162af
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