mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix setting object env var properties so they can be undone
This commit is contained in:
parent
d3efb9d7cc
commit
0f0cb3ac6d
@ -56,8 +56,12 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!isSameObj(old_env, new_env)) {
|
if (!isSameObj(old_env, new_env)) {
|
||||||
node.env = new_env;
|
|
||||||
editState.changes.env = node.env;
|
editState.changes.env = node.env;
|
||||||
|
if (new_env.length === 0) {
|
||||||
|
delete node.env;
|
||||||
|
} else {
|
||||||
|
node.env = new_env;
|
||||||
|
}
|
||||||
editState.changed = true;
|
editState.changed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user