don't persist elements before they have been read from disk

This commit is contained in:
Andre Staltz 2024-01-18 16:59:45 +02:00
parent d4e1cc8481
commit 633682db8a
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ function App() {
}
const updateElements = debounce((elems) => {
if (excalidrawAPI) return
const actions = []
for (const elem of elems) {
const oldVersion = elemsPersisted.get(elem.id)?.version ?? 0