mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-18 00:01:27 -05:00
fix(ui): only clear comparison image on alt click of gallery image
This logic can't e in the reducer else it applies to dnd events which isn't right
This commit is contained in:
@@ -38,11 +38,7 @@ export const gallerySlice = createSlice({
|
||||
state.selection = uniqBy(action.payload, (i) => i.image_name);
|
||||
},
|
||||
imageToCompareChanged: (state, action: PayloadAction<ImageDTO | null>) => {
|
||||
if (state.imageToCompare?.image_name === action.payload?.image_name) {
|
||||
state.imageToCompare = null;
|
||||
} else {
|
||||
state.imageToCompare = action.payload;
|
||||
}
|
||||
state.imageToCompare = action.payload;
|
||||
if (action.payload) {
|
||||
state.isImageViewerOpen = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user