소스 검색

Fix a bug introduced by #880 (#881)

Pete Hunt 5 년 전
부모
커밋
05ebf3434b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/renderer/renderElement.ts

+ 1 - 0
src/renderer/renderElement.ts

@@ -136,6 +136,7 @@ function generateElement(
 ) {
   let shape = shapeCache.get(element) || null;
   if (!shape) {
+    elementWithCanvasCache.delete(element);
     switch (element.type) {
       case "rectangle":
         shape = generator.rectangle(0, 0, element.width, element.height, {