diff --git a/invokeai/frontend/web/src/features/gallery/store/gallerySlice.ts b/invokeai/frontend/web/src/features/gallery/store/gallerySlice.ts index 7861515eb5..fe17f45940 100644 --- a/invokeai/frontend/web/src/features/gallery/store/gallerySlice.ts +++ b/invokeai/frontend/web/src/features/gallery/store/gallerySlice.ts @@ -89,10 +89,7 @@ export const gallerySlice = createSlice({ state.alwaysShowImageSizeBadge = action.payload; }, isImageViewerOpenChanged: (state, action: PayloadAction) => { - if (state.isImageViewerOpen && state.imageToCompare) { - state.imageToCompare = null; - return; - } + state.imageToCompare = null; state.isImageViewerOpen = action.payload; }, comparedImagesSwapped: (state) => {