Bypass the resolution check when Ping Monitoring is selected
This commit is contained in:
1 parent
d61a41fd95
commit
0ad94ecefc
1 file changed
+9
-7
@@ -149,13 +149,15 @@ const CreateMonitor = () => {
|
|||||||
setErrors(newErrors);
|
setErrors(newErrors);
|
||||||
createToast({ body: "Error validation data." });
|
createToast({ body: "Error validation data." });
|
||||||
} else {
|
} else {
|
||||||
const checkEndpointAction = await dispatch(
|
if (monitor.type === "http") {
|
||||||
checkEndpointResolution({ authToken, monitorURL: form.url })
|
const checkEndpointAction = await dispatch(
|
||||||
)
|
checkEndpointResolution({ authToken, monitorURL: form.url })
|
||||||
if (checkEndpointAction.meta.requestStatus === "rejected") {
|
)
|
||||||
createToast({ body: "The endpoint you entered doesn't resolve. Check the URL again." });
|
if (checkEndpointAction.meta.requestStatus === "rejected") {
|
||||||
setErrors({ url: "The entered URL is not reachable." });
|
createToast({ body: "The endpoint you entered doesn't resolve. Check the URL again." });
|
||||||
return;
|
setErrors({ url: "The entered URL is not reachable." });
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
form = {
|
form = {
|
||||||
|
|||||||
Reference in new issue
Block a user