Update packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js

This commit is contained in:
Nick O'Leary 2024-09-17 14:15:42 +01:00 committed by GitHub
parent af42664d73
commit 5a3e6925e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -909,7 +909,11 @@ RED.workspaces = (function() {
document.title = `${documentTitle} : ${workspace.label}`; document.title = `${documentTitle} : ${workspace.label}`;
} else { } else {
var subflow = RED.nodes.subflow(RED.workspaces.active()); var subflow = RED.nodes.subflow(RED.workspaces.active());
document.title = `${documentTitle} : ${subflow.name}`; if (subflow) {
document.title = `${documentTitle} : ${subflow.name}`;
} else {
document.title = documentTitle
}
} }
RED.nodes.eachWorkspace(function(ws) { RED.nodes.eachWorkspace(function(ws) {
workspace_tabs.renameTab(ws.id,ws.label); workspace_tabs.renameTab(ws.id,ws.label);