error installationState is in the error details

This commit is contained in:
Johannes Zellner
2025-07-23 15:31:25 +02:00
parent 0cdfd5e62b
commit 6c1045c545
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ async function onSubmit() {
busy.value = true;
formError.value = '';
const errorState = (appError.value && appError.value.installationState) || ISTATES.PENDING_CONFIGURE;
const errorState = (appError.value && appError.value.details?.installationState) || ISTATES.PENDING_CONFIGURE;
const data = {};
let repairFunc;
@@ -95,7 +95,7 @@ defineExpose({
fqdn.value = app.fqdn;
appError.value = app.error || null;
const errorState = (app.error && app.error.installationState) || ISTATES.PENDING_CONFIGURE;
const errorState = (app.error && app.error.details?.installationState) || ISTATES.PENDING_CONFIGURE;
if (errorState === ISTATES.PENDING_RESTORE || errorState === ISTATES.PENDING_IMPORT) {
const [error, result] = await appsModel.backups(app.id);