diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityObjectRenderer.ts b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityObjectRenderer.ts index 432fa7d2e3..f2d7140d68 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityObjectRenderer.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityObjectRenderer.ts @@ -216,11 +216,8 @@ export class CanvasEntityObjectRenderer extends CanvasModuleBase { // We should also never cache if the entity has no dimensions. Konva will log an error to console like this: // Konva error: Can not cache the node. Width or height of the node equals 0. Caching is skipped. - // - // It won't raise - just logs the error. - const hasContent = this.konva.objectGroup.width() > 0 && this.konva.objectGroup.height() > 0; - if (hasContent && isVisible && (force || !isCached)) { + if (isVisible && (force || !isCached)) { this.log.trace('Caching object group'); this.konva.objectGroup.clearCache(); this.konva.objectGroup.cache({ pixelRatio: 1, imageSmoothingEnabled: false });