mirror of
https://github.com/plankanban/planka.git
synced 2025-12-24 17:25:00 +03:00
fix: Fix crash when uploading attachment
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user