From 633682db8ad283e7111f7d14a381d96d51247654 Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Thu, 18 Jan 2024 16:59:45 +0200 Subject: [PATCH] don't persist elements before they have been read from disk --- src/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App.js b/src/App.js index c46057a..d6a0ef5 100644 --- a/src/App.js +++ b/src/App.js @@ -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