From 26d3ec3fced7e7303cdb1eae8a70a0744fbfb940 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 2 May 2024 22:37:53 +1000 Subject: [PATCH] fix(ui): destroy initial image layer after deleting --- .../frontend/web/src/features/controlLayers/util/renderers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/util/renderers.ts b/invokeai/frontend/web/src/features/controlLayers/util/renderers.ts index 3e34542e87..09db523a61 100644 --- a/invokeai/frontend/web/src/features/controlLayers/util/renderers.ts +++ b/invokeai/frontend/web/src/features/controlLayers/util/renderers.ts @@ -57,7 +57,8 @@ const STAGE_BG_DATAURL = const mapId = (object: { id: string }) => object.id; -const selectRenderableLayers = (n: Konva.Node) => n.name() === RG_LAYER_NAME || n.name() === CA_LAYER_NAME; +const selectRenderableLayers = (n: Konva.Node) => + n.name() === RG_LAYER_NAME || n.name() === CA_LAYER_NAME || n.name() === INITIAL_IMAGE_LAYER_NAME; const selectVectorMaskObjects = (node: Konva.Node) => { return node.name() === RG_LAYER_LINE_NAME || node.name() === RG_LAYER_RECT_NAME;