update pager_duty validation
This commit is contained in:
1 parent
bc4fe897cf
commit
993339d0d1
3 files changed
+33
-21
No files matched your search
@@ -89,8 +89,6 @@ const CreateNotifications = () => {
|
||||
error.details.forEach((err) => {
|
||||
newErrors[err.path[0]] = err.message;
|
||||
});
|
||||
console.log(JSON.stringify(newErrors));
|
||||
console.log(JSON.stringify(form, null, 2));
|
||||
createToast({ body: Object.values(newErrors)[0] });
|
||||
setErrors(newErrors);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user