We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de7933a + d6d3563 commit 1548856Copy full SHA for 1548856
src/shared/containers/timeline-wall/timeline-events/events/event-item/index.jsx
@@ -63,11 +63,11 @@ function EventItem({
63
>
64
<PhotoItemsMobile
65
styleName="hide-desktop show-mobile photo-item"
66
- photos={eventItem.mediaFiles}
+ photos={(eventItem.mediaFiles || []).map((photo, index) => ({ ...photo, id: index }))}
67
/>
68
{eventItem.mediaFiles.map(photo => (
69
<PhotoVideoItem
70
- styleName="photo-item"
+ styleName="photo-item hide-mobile"
71
url={photo.previewUrl || photo.url}
72
videoThumnailUrl={photo.videoThumnailUrl}
73
isUrlPhoto={!photo.videoThumnailUrl}
0 commit comments