diff --git a/src/components/sidebar/defibrillatorDetails.tsx b/src/components/sidebar/defibrillatorDetails.tsx index 6dfa216..b7397af 100644 --- a/src/components/sidebar/defibrillatorDetails.tsx +++ b/src/components/sidebar/defibrillatorDetails.tsx @@ -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} />