Fix web config trying to set the new prop value as field

Fix the BaseConfigTree treating the nex property name and value boxes as
fields to be applied to the config when pressing Apply.
This commit is contained in:
Hornwitser committed 2021-02-24 20:18:41 +01:00
1 parent 0366334e7c
commit 38b7d0f600
1 file changed
+3
@@ -42,6 +42,9 @@ export default function BaseConfigTree(props) {
let newChangedFields = new Set(changedFields);
let changed = false;
for (let [key, value] of Object.entries(changedValues)) {
if (key.endsWith(":add.name") || key.endsWith(":add.value")) {
continue;
}
if (initialValues[key] === value) {
changed = newChangedFields.delete(key) || changed;
} else {