This commit is contained in:
EGOIST
2022-05-15 16:15:57 +08:00
parent d0d76cfbdd
commit b7f0b44886
@@ -120,8 +120,10 @@ export default function SubdomainEditor() {
`\n\n![${file.name.replace(/\.\w+$/, "")}](${key})\n\n`
)
)
} catch (error: any) {
toast.error(error.mesage, { id: toastId })
} catch (error) {
if (error instanceof Error) {
toast.error(error.message, { id: toastId })
}
}
},
[uploadFile]