From 0551ea39e7c7ff662db53e02db7c2d30ec6447f7 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Fri, 3 Jun 2022 22:00:32 +0200 Subject: [PATCH] fix: max size of tempchart (#865) --- src/store/server/getters.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/server/getters.ts b/src/store/server/getters.ts index de2680c5..3efd3c06 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 },