mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
fix: Fix crash when uploading attachment
This commit is contained in:
parent
d5076cf722
commit
5514ed7f37
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ const Attachments = React.memo(
|
||||||
}, [toggleAllVisible]);
|
}, [toggleAllVisible]);
|
||||||
|
|
||||||
const galleryItemsNode = items.map((item, index) => {
|
const galleryItemsNode = items.map((item, index) => {
|
||||||
const isPdf = item.url.endsWith('.pdf');
|
const isPdf = item.url && item.url.endsWith('.pdf');
|
||||||
|
|
||||||
let props;
|
let props;
|
||||||
if (item.image) {
|
if (item.image) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue