1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure subflow-scoped config nodes do not get moved on import

Fixes #2789
This commit is contained in:
Nick O'Leary 2021-01-06 11:22:52 +00:00
parent c433f736a5
commit 30a68fefec
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1360,7 +1360,7 @@ RED.nodes = (function() {
} }
} }
} else { } else {
if (n.z && !workspaces[n.z]) { if (n.z && !workspaces[n.z] && !subflow_map[n.z]) {
n.z = activeWorkspace; n.z = activeWorkspace;
} }
} }