Do not show progress images in the viewer

This commit is contained in:
blessedcoolant 2022-11-11 16:08:09 +13:00
parent c02a0da837
commit 77d3839860
2 changed files with 4 additions and 3 deletions

View File

@ -30,6 +30,7 @@ export const imagesSelector = createSelector(
return {
imageToDisplay: intermediateImage ? intermediateImage : currentImage,
viewerImageToDisplay: currentImage,
currentCategory,
isOnFirstImage: currentImageIndex === 0,
isOnLastImage:

View File

@ -22,7 +22,7 @@ export default function Lightbox() {
);
const {
imageToDisplay,
viewerImageToDisplay,
shouldShowImageDetails,
isOnFirstImage,
isOnLastImage,
@ -102,9 +102,9 @@ export default function Lightbox() {
</div>
</div>
)}
{imageToDisplay && (
{viewerImageToDisplay && (
<ReactPanZoom
image={imageToDisplay.url}
image={viewerImageToDisplay.url}
styleClass="lightbox-image"
/>
)}