mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-17 23:21:22 -05:00
fix(ui): when changing viewer state, always clear compare image
This commit is contained in:
@@ -89,10 +89,7 @@ export const gallerySlice = createSlice({
|
||||
state.alwaysShowImageSizeBadge = action.payload;
|
||||
},
|
||||
isImageViewerOpenChanged: (state, action: PayloadAction<boolean>) => {
|
||||
if (state.isImageViewerOpen && state.imageToCompare) {
|
||||
state.imageToCompare = null;
|
||||
return;
|
||||
}
|
||||
state.imageToCompare = null;
|
||||
state.isImageViewerOpen = action.payload;
|
||||
},
|
||||
comparedImagesSwapped: (state) => {
|
||||
|
||||
Reference in New Issue
Block a user