From 90697ca38f727b1821574341d34276ceb75c077a Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Tue, 14 Jul 2020 10:22:00 +0200 Subject: [PATCH] Fix error when remembered tab does not exist Caused by renaming `tab_statistics` to `tab_analysis`. --- js/plugin/Sidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugin/Sidebar.js b/js/plugin/Sidebar.js index 36269f2..c8e16be 100644 --- a/js/plugin/Sidebar.js +++ b/js/plugin/Sidebar.js @@ -79,7 +79,7 @@ BR.Sidebar = L.Control.Sidebar.extend({ // not set: closed by default for new users tabId = ''; } - if (tabId !== '') { + if (tabId !== '' && this._getTab(tabId)) { this.open(tabId); } }