Fix switching projects

This commit is contained in:
Nick O'Leary
2021-10-14 11:07:49 +01:00
parent f030694ef4
commit 3fde5c27ed
2 changed files with 5 additions and 1 deletions

View File

@@ -251,6 +251,9 @@ var RED = (function() {
if (/^#flow\/.+$/.test(currentHash)) {
RED.workspaces.show(currentHash.substring(6),true);
}
if (RED.workspaces.active() === 0 && RED.workspaces.count() > 0) {
RED.workspaces.show(RED.nodes.getWorkspaceOrder()[0])
}
} catch(err) {
console.warn(err);
RED.notify(