소스 검색

Check for roundness undefined

zsviczian 1 년 전
부모
커밋
e163402e22
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"
       ? {