web: fix attachment dialog not opening on error

This commit is contained in:
Abdullah Atta
2023-12-11 15:09:38 +05:00
parent 4961102d8f
commit d881bdb77c

View File

@@ -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} />