Merge pull request #275 from SaraVieira/274-fix

Get error correctly in catch
This commit is contained in:
Andras Bacsai authored and GitHub committed 2022-04-02 22:35:13 +02:00
commit 5f27fc0770
1 file changed
+2 -2
+2 -2
View File
@@ -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);