From 2e88d0f3a0acf18828419456fecc7770cf9e6df6 Mon Sep 17 00:00:00 2001 From: aquananu <93096176+aquananu@users.noreply.github.com> Date: Sat, 1 Aug 2026 00:10:07 +0530 Subject: [PATCH] fix: Prevent TypeError crash on undefined attachment info Adds optional chaining to info.filename in AttachmentList.vue. This prevents a complete UI crash (TypeError: Cannot read properties of undefined (reading 'filename')) when rendering a card that has an attachment with missing or undefined info data. the attachment list was not getting populated on some cards Signed-off-by: aquananu <93096176+aquananu@users.noreply.github.com> --- src/components/card/AttachmentList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/card/AttachmentList.vue b/src/components/card/AttachmentList.vue index 394320b68d..7e4a148b2b 100644 --- a/src/components/card/AttachmentList.vue +++ b/src/components/card/AttachmentList.vue @@ -190,7 +190,7 @@ export default { } }, attachmentBasename() { - return (attachment) => attachment?.extendedData?.info.filename + return (attachment) => attachment?.extendedData?.info?.filename ?? (attachment?.name ?? attachment.data).replace(/\.[^/.]+$/, '') }, attachmentExtension() {