mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure recoverd nodes tab is added to outliner properly
This commit is contained in:
parent
7bd0ca2212
commit
dc8991a1da
@ -971,10 +971,15 @@ RED.nodes = (function() {
|
||||
// Hit the rare issue where node z values get set to 0.
|
||||
// Repair the flow - but we really need to track that down.
|
||||
if (!recoveryWorkspace) {
|
||||
recoveryWorkspace = RED.workspaces.add(null,true);
|
||||
recoveryWorkspace.label = RED._("clipboard.recoveredNodes");
|
||||
recoveryWorkspace.info = RED._("clipboard.recoveredNodesInfo");
|
||||
|
||||
recoveryWorkspace = {
|
||||
id: RED.nodes.id(),
|
||||
type: "tab",
|
||||
disabled: false,
|
||||
label: RED._("clipboard.recoveredNodes"),
|
||||
info: RED._("clipboard.recoveredNodesInfo")
|
||||
}
|
||||
addWorkspace(recoveryWorkspace);
|
||||
RED.workspaces.add(recoveryWorkspace);
|
||||
nodeZmap[recoveryWorkspace.id] = [];
|
||||
}
|
||||
n.z = recoveryWorkspace.id;
|
||||
|
Loading…
Reference in New Issue
Block a user