[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io 2023-11-23 06:31:28 +00:00
parent 01ae2748c8
commit 2422f1dab5
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
2 changed files with 6 additions and 2 deletions

View file

@ -29,7 +29,9 @@ var updateAvailable = process.env.FDUpdateAvail;
// start modemCheck modal once on startup
onMounted(() => {
getModemState().then();
getVersion().then(res => {state.modem_version=res});
getVersion().then((res) => {
state.modem_version = res;
});
new Modal("#modemCheck", {}).show();
});

View file

@ -36,7 +36,9 @@ export async function apiPost(endpoint, payload = {}) {
}
export async function getVersion() {
let data = await apiGet("/version").then(res => {return res});
let data = await apiGet("/version").then((res) => {
return res;
});
return data.version;
//return data["version"];
}