diff --git a/client/src/components/CardModal/Attachments/Attachments.jsx b/client/src/components/CardModal/Attachments/Attachments.jsx index b2eea422..f8a3a2c4 100644 --- a/client/src/components/CardModal/Attachments/Attachments.jsx +++ b/client/src/components/CardModal/Attachments/Attachments.jsx @@ -58,7 +58,7 @@ const Attachments = React.memo( }, [toggleAllVisible]); const galleryItemsNode = items.map((item, index) => { - const isPdf = item.url.endsWith('.pdf'); + const isPdf = item.url && item.url.endsWith('.pdf'); let props; if (item.image) {