Skip to content

Commit f385a51

Browse files
committed
fix undefined images array
1 parent 134d99c commit f385a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Attachment/Attachment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const renderAttachmentActions = (props) => {
127127
export const renderGallery = (props) => {
128128
const { attachment: a, Gallery } = props;
129129
return renderAttachmentWithinContainer(
130-
<Gallery images={a.images} key="gallery" />,
130+
<Gallery images={a.images || []} key="gallery" />,
131131
a,
132132
'gallery',
133133
);

0 commit comments

Comments
 (0)