From 3c1086dfccfde0aac60c3c93898021474bea5b1f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 10 Jun 2024 18:50:50 +0200 Subject: [PATCH] :bug: Fix race condition between shape modifiation and persistence --- frontend/src/app/main/data/changes.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/changes.cljs b/frontend/src/app/main/data/changes.cljs index 4da8d30da9..6c0b3d7530 100644 --- a/frontend/src/app/main/data/changes.cljs +++ b/frontend/src/app/main/data/changes.cljs @@ -69,9 +69,10 @@ (cpc/check-changes! undo-changes))) (let [commit-id (or commit-id (uuid/next)) + source (d/nilv source :local) commit {:id commit-id :created-at (dt/now) - :source (d/nilv source :local) + :source source :origin (ptk/type origin) :features features :file-id file-id