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
1 changed files with 3 additions and 1 deletions

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;
}
});
}