diff --git a/src/routes/applications/[id]/index.svelte b/src/routes/applications/[id]/index.svelte index 0f0c77fb0..f501ea133 100644 --- a/src/routes/applications/[id]/index.svelte +++ b/src/routes/applications/[id]/index.svelte @@ -128,8 +128,8 @@ await post(`/applications/${id}/check.json`, { fqdn: application.fqdn, forceSave }); await post(`/applications/${id}.json`, { ...application }); return window.location.reload(); - } catch ({ error }) { - if (error.startsWith('DNS not set')) { + } catch (error) { + if (error?.startsWith('DNS not set')) { forceSave = true; } return errorNotification(error);