mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): discard selected staging image not all other images
This commit is contained in:
@@ -26,7 +26,7 @@ export const sessionReducers = {
|
||||
},
|
||||
sessionStagedImageDiscarded: (state, action: PayloadAction<{ index: number }>) => {
|
||||
const { index } = action.payload;
|
||||
state.session.stagedImages = state.session.stagedImages.splice(index, 1);
|
||||
state.session.stagedImages.splice(index, 1);
|
||||
state.session.selectedStagedImageIndex = Math.min(
|
||||
state.session.selectedStagedImageIndex,
|
||||
state.session.stagedImages.length - 1
|
||||
|
||||
Reference in New Issue
Block a user