error installationState is in the error details
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user