diff --git a/packages/frontend/src/model/periods.ts b/packages/frontend/src/model/periods.ts index e9a5d1031..f71665732 100644 --- a/packages/frontend/src/model/periods.ts +++ b/packages/frontend/src/model/periods.ts @@ -64,9 +64,9 @@ export type PeriodAndQuantifierPageParams = { * and `settings` are not returned but need to be separately loaded using * @DetailedSinglePeriodQuery */ -export const AllPeriods = atom({ +export const AllPeriods = atom({ key: 'AllPeriods', - default: undefined, + default: [], effects: [ ({ setSelf, getPromise }): void => { setSelf( @@ -83,6 +83,7 @@ export const AllPeriods = atom({ return periods; } } + return []; }) ); },