Browse Source

fix - restore

zsviczian 1 năm trước cách đây
mục cha
commit
156b8b422b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/data/restore.ts

+ 1 - 1
src/data/restore.ts

@@ -297,7 +297,7 @@ const restoreElement = (
     case "embeddable":
       return restoreElementWithProperties(element, {
         validated: null,
-        scale: [1, 1],
+        scale: element.scale ?? [1, 1],
       });
     case "frame":
       return restoreElementWithProperties(element, {