remove closures from mutateElement, get rid of the element spreading (#902)
This commit is contained in:
@ -52,6 +52,7 @@ export function restore(
|
||||
|
||||
return {
|
||||
...element,
|
||||
version: element.id ? element.version + 1 : element.version || 0,
|
||||
id: element.id || nanoid(),
|
||||
fillStyle: element.fillStyle || "hachure",
|
||||
strokeWidth: element.strokeWidth || 1,
|
||||
|
Reference in New Issue
Block a user