Skip to content

Commit

Permalink
handle image without photoId
Browse files Browse the repository at this point in the history
  • Loading branch information
ttomasz committed Sep 20, 2023
1 parent ecd9ade commit e237e15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/sidebar/defibrillatorDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function photoGallery(data: DefibrillatorData, closeSidebar: () => void) {
lazyLoad
showPlayButton={false}
showThumbnails={images.length > 1}
renderCustomControls={renderCustomControls}
// eslint-disable-next-line eqeqeq
renderCustomControls={data.photoId == null ? undefined : renderCustomControls}
/>
<hr style={{ marginTop: "0.5rem", marginBottom: "1rem" }} />
</div>
Expand Down

0 comments on commit e237e15

Please sign in to comment.