guard
This commit is contained in:
@@ -62,12 +62,15 @@
|
|||||||
toast.success("Data posted successfully");
|
toast.success("Data posted successfully");
|
||||||
},
|
},
|
||||||
onError: (e) => {
|
onError: (e) => {
|
||||||
|
try {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (e.detail) {
|
if (e.detail) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return toast.error(e.detail);
|
return toast.error(e.detail);
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
}
|
||||||
toast.error("Error posting data");
|
toast.error("Error posting data");
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user