diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationComplete.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationComplete.ts index d8dcfb76b1..13057f9f50 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationComplete.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationComplete.ts @@ -2,7 +2,7 @@ import { logger } from 'app/logging/logger'; import type { AppStartListening } from 'app/store/middleware/listenerMiddleware'; import { deepClone } from 'common/util/deepClone'; import { parseify } from 'common/util/serialize'; -import { $lastProgressEvent, sessionImageStaged } from 'features/controlLayers/store/canvasV2Slice'; +import { sessionImageStaged } from 'features/controlLayers/store/canvasV2Slice'; import { boardIdSelected, galleryViewChanged, imageSelected, offsetChanged } from 'features/gallery/store/gallerySlice'; import { $nodeExecutionStates, upsertExecutionState } from 'features/nodes/hooks/useExecutionState'; import { zNodeStatus } from 'features/nodes/types/invocation'; @@ -64,14 +64,10 @@ export const addInvocationCompleteEventListener = (startAppListening: AppStartLi const { offset_x, offset_y } = data.result; if (canvasV2.session.isStaging) { dispatch(sessionImageStaged({ stagingAreaImage: { imageDTO, offsetX: offset_x, offsetY: offset_y } })); - } else if (!canvasV2.session.isActive) { - $lastProgressEvent.set(null); } } else if (data.result.type === 'image_output') { if (canvasV2.session.isStaging) { dispatch(sessionImageStaged({ stagingAreaImage: { imageDTO, offsetX: 0, offsetY: 0 } })); - } else if (!canvasV2.session.isActive) { - $lastProgressEvent.set(null); } } } diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasProgressImage.ts b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasProgressImage.ts index c9ffe895d4..7d5df77400 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasProgressImage.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasProgressImage.ts @@ -77,7 +77,6 @@ export class CanvasProgressImage { try { this.imageElement = await loadImage(dataURL); if (this.konva.image) { - console.log('UPDATING PROGRESS IMAGE') this.konva.image.setAttrs({ image: this.imageElement, x, @@ -86,7 +85,6 @@ export class CanvasProgressImage { height, }); } else { - console.log('CREATING NEW PROGRESS IMAGE') this.konva.image = new Konva.Image({ name: CanvasProgressImage.IMAGE_NAME, listening: false,