1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

fix: Fix crash when uploading attachment

This commit is contained in:
Maksim Eltyshev 2022-06-24 17:17:42 +02:00
parent d5076cf722
commit 5514ed7f37

View file

@ -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) {