mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix workspace reference error in case of empty tabs
This commit is contained in:
parent
a607ee90e0
commit
720d44d53e
@ -195,7 +195,7 @@ RED.workspaces = (function() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
const currentTabs = workspace_tabs.listTabs()
|
const currentTabs = workspace_tabs.listTabs()
|
||||||
const activeIndex = currentTabs.findIndex(id => id === activeWorkspace.id)
|
const activeIndex = currentTabs.findIndex(id => (activeWorkspace && (id === activeWorkspace.id)));
|
||||||
menuItems.push(
|
menuItems.push(
|
||||||
{
|
{
|
||||||
label: RED._("workspace.moveToStart"),
|
label: RED._("workspace.moveToStart"),
|
||||||
|
Loading…
Reference in New Issue
Block a user