mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): discard selected staging image not all other images
This commit is contained in:
parent
db885aa180
commit
8601fbb4ea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user