Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix attachment dialog not opening on error

Abdullah Attad881bdb77cf7
diff --git a/apps/web/src/components/attachment/index.tsx b/apps/web/src/components/attachment/index.tsx
index 7c49857b6..88f5e6fc9 100644
--- a/apps/web/src/components/attachment/index.tsx
+++ b/apps/web/src/components/attachment/index.tsx
@@ -164,7 +164,11 @@ export function Attachment({
<AttachmentError
color={"icon-error"}
size={16}
- title={attachment.failed}
+ title={
+ typeof attachment.failed === "object"
+ ? attachment.failed.toString()
+ : attachment.failed
+ }
/>
) : attachment.working ? (
<Loading size={16} />