Fix error when remembered tab does not exist

Caused by renaming `tab_statistics` to `tab_analysis`.
This commit is contained in:
Norbert Renner 2020-07-14 10:22:00 +02:00
parent 9500481df0
commit 90697ca38f

View file

@ -79,7 +79,7 @@ BR.Sidebar = L.Control.Sidebar.extend({
// not set: closed by default for new users // not set: closed by default for new users
tabId = ''; tabId = '';
} }
if (tabId !== '') { if (tabId !== '' && this._getTab(tabId)) {
this.open(tabId); this.open(tabId);
} }
} }