diff --git a/invokeai/frontend/web/src/features/controlLayers/store/sessionReducers.ts b/invokeai/frontend/web/src/features/controlLayers/store/sessionReducers.ts index 7b21cb12c6..94c42aedea 100644 --- a/invokeai/frontend/web/src/features/controlLayers/store/sessionReducers.ts +++ b/invokeai/frontend/web/src/features/controlLayers/store/sessionReducers.ts @@ -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