Add fallback for when /ui_version is not available

This commit is contained in:
Matthias 2024-03-10 20:35:01 +01:00
parent e8a1a17777
commit 44e5216de8

View File

@ -56,7 +56,7 @@ export const useSettingsStore = defineStore('uiSettings', {
try {
const result = await axios.get<UiVersion>('/ui_version');
const { version } = result.data;
this._uiVersion = version;
this._uiVersion = version ?? 'dev';
} catch (error) {
//
}