mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Add fallback for when /ui_version is not available
This commit is contained in:
parent
e8a1a17777
commit
44e5216de8
|
@ -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) {
|
||||
//
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user