From 3539670d93e83eeef0dcfbe37675773f95850b42 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:43:23 +1000 Subject: [PATCH] fix(ui): fix canvas cache property access --- .../src/features/controlLayers/konva/CanvasObjectRenderer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasObjectRenderer.ts b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasObjectRenderer.ts index 9978cac896..3d53538f82 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasObjectRenderer.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasObjectRenderer.ts @@ -497,7 +497,7 @@ export class CanvasObjectRenderer { const { rect, replaceObjects, attrs } = { replaceObjects: false, attrs: {}, ...options }; let imageDTO: ImageDTO | null = null; const hash = this.parent.hash({ rect, attrs }); - const cachedImageName = this.manager.imageNameCache.get(hash); + const cachedImageName = this.manager.cache.imageNameCache.get(hash); if (cachedImageName) { imageDTO = await getImageDTO(cachedImageName); @@ -525,7 +525,7 @@ export class CanvasObjectRenderer { rect: { x: Math.round(rect.x), y: Math.round(rect.y), width: imageDTO.width, height: imageDTO.height }, replaceObjects, }); - this.manager.imageNameCache.set(hash, imageDTO.image_name); + this.manager.cache.imageNameCache.set(hash, imageDTO.image_name); return imageDTO; };