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

Do not assign z property to tab node when updating flow

Fixes #3010
This commit is contained in:
Nick O'Leary 2021-06-08 11:35:10 +01:00
parent f8b61d2926
commit 7651941722
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -697,7 +697,9 @@ async function updateFlow(id,newFlow, user) {
nodes = [tabNode].concat(newFlow.nodes||[]).concat(newFlow.configs||[]);
nodes.forEach(function(n) {
n.z = id;
if (n.type !== 'tab') {
n.z = id;
}
});
}