fix: Fix crash when uploading attachment

pull/268/head v1.3.2
Maksim Eltyshev 4 years ago
parent 3b3bff1b6b
commit e01a2eafba

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

Loading…
Cancel
Save