mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 23:14:53 +09:00
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:
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 {
|
||||
|
||||
Reference in new issue
Block a user