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

Avoid adding empty env properties to tabs/groups

Fixes #3306
This commit is contained in:
Nick O'Leary 2021-12-27 12:03:18 +00:00
parent 91cb6ba73b
commit 9af7357ca4
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -55,7 +55,9 @@
}
});
}
if (!isSameObj(old_env, new_env)) {
if (!old_env && new_env.length === 0) {
delete node.env;
} else if (!isSameObj(old_env, new_env)) {
editState.changes.env = node.env;
if (new_env.length === 0) {
delete node.env;