mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
Complete coverage of config classes
This commit is contained in:
2 files changed
+224
-167
No files matched your search
@@ -794,7 +794,7 @@ export class Config<
|
||||
throw new InvalidValue(`Cannot set property on non-object field '${name}'`);
|
||||
}
|
||||
|
||||
const prev = this.fields[name] as Record<string, unknown>;
|
||||
const prev = this.staging.get(name) as Record<string, unknown>;
|
||||
const updated = {...prev || {}};
|
||||
|
||||
if (value !== undefined) {
|
||||
|
||||
Reference in new issue
Block a user