diff --git a/dashboard/src/components/AppRepairDialog.vue b/dashboard/src/components/AppRepairDialog.vue index de1d716fb..e13040a12 100644 --- a/dashboard/src/components/AppRepairDialog.vue +++ b/dashboard/src/components/AppRepairDialog.vue @@ -25,7 +25,7 @@ async function onSubmit() { busy.value = true; formError.value = ''; - const errorState = (appError.value && appError.value.details?.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.details?.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); diff --git a/dashboard/src/components/app/Location.vue b/dashboard/src/components/app/Location.vue index 870d028e8..7aba0bf7e 100644 --- a/dashboard/src/components/app/Location.vue +++ b/dashboard/src/components/app/Location.vue @@ -185,7 +185,7 @@ onMounted(async () => {
- + @@ -253,6 +253,6 @@ onMounted(async () => {
- +
diff --git a/dashboard/src/components/app/Repair.vue b/dashboard/src/components/app/Repair.vue index 5e44524c9..847be6b08 100644 --- a/dashboard/src/components/app/Repair.vue +++ b/dashboard/src/components/app/Repair.vue @@ -68,7 +68,7 @@ onMounted(() => {

{{ $t('app.repair.taskError.description') }}

-

An error occurred during the {{ taskNameFromInstallationState(app.error.details?.installationState) }} operation: {{ app.error.reason + ': ' + app.error.message }}

- +

An error occurred during the {{ taskNameFromInstallationState(app.error.details.installationState) }} operation: {{ app.error.reason + ': ' + app.error.message }}

+ diff --git a/dashboard/src/components/app/Uninstall.vue b/dashboard/src/components/app/Uninstall.vue index aa8d25a69..d09f9ec52 100644 --- a/dashboard/src/components/app/Uninstall.vue +++ b/dashboard/src/components/app/Uninstall.vue @@ -19,7 +19,7 @@ const props = defineProps([ 'app' ]); const latestBackup = ref(null); function isAppStopped() { if (props.app.error) { - if (props.app.error.details?.installationState === ISTATES.PENDING_START) return true; + if (props.app.error.details.installationState === ISTATES.PENDING_START) return true; else return false; } else if (props.app.installationState === ISTATES.PENDING_START || props.app.installationState === ISTATES.PENDING_STOP) { return props.app.installationState === ISTATES.PENDING_START; @@ -102,7 +102,7 @@ onMounted(async () => {

{{ $t('app.uninstall.startStop.description') }}