diff --git a/src/stateAggregator/accessors/aliasAccessor.ts b/src/stateAggregator/accessors/aliasAccessor.ts index b5701f53f9..0a6653624b 100644 --- a/src/stateAggregator/accessors/aliasAccessor.ts +++ b/src/stateAggregator/accessors/aliasAccessor.ts @@ -281,7 +281,8 @@ const fileContentsRawToAliasStore = (contents: string): Map => { [DEFAULT_GROUP]: { [alias: string]: string }; }; - return new Map(Object.entries(fileContents[DEFAULT_GROUP])); + // handle when alias file exists but is missing the org property + return new Map(Object.entries(fileContents[DEFAULT_GROUP] ?? {})); }; const aliasStoreToRawFileContents = (aliasStore: Map): string =>