diff --git a/src/routes/admin/fs-modal.svelte b/src/routes/admin/fs-modal.svelte index 1b5c74a..110b8be 100755 --- a/src/routes/admin/fs-modal.svelte +++ b/src/routes/admin/fs-modal.svelte @@ -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"); }, });