Check for roundness undefined

This commit is contained in:
zsviczian 2024-05-20 08:22:00 +02:00 committed by GitHub
parent 2f9526da24
commit e163402e22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"
? {