From 154cd7dd179d48829ae448fd222f17cdc8a40358 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:16:27 +1000 Subject: [PATCH] fix(ui): sync $isStaging on staging area module init Fixes a case where the canvas is erroneously interactable after refreshing the page while currently staging. --- .../src/features/controlLayers/konva/CanvasStagingAreaModule.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts index 5163c18e67..e092788f80 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasStagingAreaModule.ts @@ -62,6 +62,7 @@ export class CanvasStagingAreaModule extends CanvasModuleBase { initialize = () => { this.log.debug('Initializing module'); this.render(); + this.$isStaging.set(this.manager.stateApi.runSelector(selectIsStaging)); }; render = async () => {