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