From 1ef287027bedff6d5c43a5f59d076fce7120a904 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Wed, 12 Jan 2022 23:21:45 +0100 Subject: [PATCH] fix: support collaboration in bounded text (#4580) --- src/data/restore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/restore.ts b/src/data/restore.ts index 6b1fd485..68b26992 100644 --- a/src/data/restore.ts +++ b/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, {