Merge pull request #2571 from node-red-hitachi/fix-delete-tab

Fix error on deleting tab
This commit is contained in:
Nick O'Leary 2020-05-19 10:06:49 +01:00 committed by GitHub
commit e4b9c6a2ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -220,7 +220,9 @@ RED.workspaces = (function() {
if (RED.view.state() != RED.state.IMPORT_DRAGGING) {
RED.view.state(RED.state.DEFAULT);
}
RED.sidebar.info.refresh(workspace);
if (workspace_tabs.contains(workspace.id)) {
RED.sidebar.info.refresh(workspace);
}
tabflowEditor.destroy();
}
}