Преглед изворни кода

fix: support collaboration in bounded text (#4580)

David Luzar пре 3 година
родитељ
комит
1ef287027b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/data/restore.ts

+ 1 - 1
src/data/restore.ts

@@ -136,7 +136,7 @@ const restoreElement = (
         textAlign: element.textAlign || DEFAULT_TEXT_ALIGN,
         verticalAlign: element.verticalAlign || DEFAULT_VERTICAL_ALIGN,
         containerId: element.containerId ?? null,
-        originalText: element.originalText ?? "",
+        originalText: element.originalText || element.text,
       });
     case "freedraw": {
       return restoreElementWithProperties(element, {