1
0
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:
Nick O'Leary 2021-05-11 16:42:32 +01:00
parent d8d384a979
commit 8f7686cd7b
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -199,7 +199,7 @@ RED.sidebar = (function() {
id = RED.settings.get("editor.sidebar.order",["info", "help", "version-control", "debug"])[0] id = RED.settings.get("editor.sidebar.order",["info", "help", "version-control", "debug"])[0]
} }
if (id) { if (id) {
if (!containsTab(id)) { if (!containsTab(id) && knownTabs[id]) {
sidebar_tabs.addTab(knownTabs[id]); sidebar_tabs.addTab(knownTabs[id]);
} }
sidebar_tabs.activateTab(id); sidebar_tabs.activateTab(id);