Fix many syncing issues (#952)

This commit is contained in:
Pete Hunt
2020-03-14 20:46:57 -07:00
committed by GitHub
parent b20d4539c0
commit 3f8144ef85
15 changed files with 176 additions and 100 deletions

View File

@ -52,7 +52,8 @@ export function restore(
return {
...element,
version: element.version || 0,
// all elements must have version > 0 so getDrawingVersion() will pick up newly added elements
version: element.version || 1,
id: element.id || nanoid(),
fillStyle: element.fillStyle || "hachure",
strokeWidth: element.strokeWidth || 1,