mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 16:15:17 +00:00
Merge pull request #275 from SaraVieira/274-fix
Get error correctly in catch
This commit is contained in:
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user