diff --git a/src/config/system-state.ts b/src/config/system-state.ts index 07b8ec1..dff7579 100644 --- a/src/config/system-state.ts +++ b/src/config/system-state.ts @@ -37,7 +37,7 @@ export function serializeSystemState(state: SystemState) { export function parseSystemState(json: string) { let diskState = JSON.parse(json, (k, v) => { - if (v.hasOwnProperty('_type') && v._type == 'Map') { + if (v?.hasOwnProperty('_type') && v?._type == 'Map') { return new Map(Object.entries(v.data)) } else { return v