Browse Source

fix: double text rendering on edit (#7904)

David Luzar 1 year ago
parent
commit
5211b003b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/excalidraw/renderer/staticScene.ts

+ 1 - 1
packages/excalidraw/renderer/staticScene.ts

@@ -281,7 +281,7 @@ const _renderStaticScene = ({
           );
           );
         }
         }
 
 
-        const boundTextElement = getBoundTextElement(element, allElementsMap);
+        const boundTextElement = getBoundTextElement(element, elementsMap);
         if (boundTextElement) {
         if (boundTextElement) {
           renderElement(
           renderElement(
             boundTextElement,
             boundTextElement,