diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageUploaded.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageUploaded.ts index 7d578356f4..c32da2e710 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageUploaded.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageUploaded.ts @@ -6,9 +6,12 @@ import { imageUploaded } from 'services/thunks/image'; export const addImageUploadedListener = () => { startAppListening({ - actionCreator: imageUploaded.fulfilled, + predicate: (action): action is ReturnType => + imageUploaded.fulfilled.match(action) && + action.payload.response.image_type !== 'intermediates', effect: (action, { dispatch, getState }) => { const { response } = action.payload; + const state = getState(); const image = deserializeImageResponse(response);