mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 04:55:15 +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 {
|
try {
|
||||||
const result = await axios.get<UiVersion>('/ui_version');
|
const result = await axios.get<UiVersion>('/ui_version');
|
||||||
const { version } = result.data;
|
const { version } = result.data;
|
||||||
this._uiVersion = version;
|
this._uiVersion = version ?? 'dev';
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user