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

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;