diff --git a/src/store/server/getters.ts b/src/store/server/getters.ts index de2680c53..3efd3c061 100644 --- a/src/store/server/getters.ts +++ b/src/store/server/getters.ts @@ -33,7 +33,9 @@ export const getters: GetterTree = { }, getConfig: (state) => (section: string, attribute: string) => { - if (section in state.config && attribute in state.config[section]) return state.config[section][attribute] + const config = state.config?.config ?? {} + + if (section in config && attribute in config[section]) return config[section][attribute] return null },