mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Handle sidebar tab that no longer exists when setting first active
This commit is contained in:
parent
d8d384a979
commit
8f7686cd7b
@ -199,7 +199,7 @@ RED.sidebar = (function() {
|
||||
id = RED.settings.get("editor.sidebar.order",["info", "help", "version-control", "debug"])[0]
|
||||
}
|
||||
if (id) {
|
||||
if (!containsTab(id)) {
|
||||
if (!containsTab(id) && knownTabs[id]) {
|
||||
sidebar_tabs.addTab(knownTabs[id]);
|
||||
}
|
||||
sidebar_tabs.activateTab(id);
|
||||
|
Loading…
Reference in New Issue
Block a user