diff --git a/src/stores/config.ts b/src/stores/config.ts index 29e4fb37c..711bf4fd2 100644 --- a/src/stores/config.ts +++ b/src/stores/config.ts @@ -82,6 +82,9 @@ export const useConfigStore = defineStore('config', () => { async function update(): Promise { const HTTP = HTTPFactory() const {data: config} = await HTTP.get('info') + if (typeof config.version === 'undefined') { + return false + } setConfig(objectToCamelCase(config)) const success = !!config return success