From 5ff51700b7c41ea4889c67cbd61626a7d5295b53 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 e10811b4e..cb53b3837 100644 --- a/src/components/card/AttachmentList.vue +++ b/src/components/card/AttachmentList.vue @@ -195,7 +195,7 @@ export default { } }, attachmentBasename() { - return (attachment) => attachment?.extendedData?.info.filename + return (attachment) => attachment?.extendedData?.info?.filename ?? (attachment?.name ?? attachment.data).replace(/\.[^/.]+$/, '') }, attachmentExtension() {