fix: max size of tempchart (#865)

This commit is contained in:
Stefan Dej authored and GitHub committed 2022-06-03 22:00:32 +02:00
1 parent 80206d7b4a
commit 0551ea39e7
1 file changed
+3 -1
+3 -1
View File
@@ -33,7 +33,9 @@ export const getters: GetterTree<ServerState, any> = {
},
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
},