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); } }