fix: max size of tempchart (#865)

This commit is contained in:
Stefan Dej 2022-06-03 22:00:32 +02:00 committed by GitHub
parent 80206d7b4a
commit 0551ea39e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
},