Przeglądaj źródła

Check for roundness undefined

zsviczian 1 rok temu
rodzic
commit
e163402e22
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/excalidraw/data/restore.ts

+ 1 - 1
packages/excalidraw/data/restore.ts

@@ -140,7 +140,7 @@ const restoreElementWithProperties = <
     seed: element.seed ?? 1,
     groupIds: element.groupIds ?? [],
     frameId: element.frameId ?? null,
-    roundness: element.roundness
+    roundness: typeof element.roundness !== "undefined"
       ? element.roundness
       : element.strokeSharpness === "round"
       ? {