From 28348503370008dfce756307cfed775a500bdc72 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 26 May 2021 12:14:02 +0200 Subject: [PATCH] :paperclip: Add safety check on reg-objects change impl. --- common/app/common/pages/changes.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/app/common/pages/changes.cljc b/common/app/common/pages/changes.cljc index 0a792233c..4fa3f8b75 100644 --- a/common/app/common/pages/changes.cljc +++ b/common/app/common/pages/changes.cljc @@ -142,7 +142,7 @@ (defmethod process-change :reg-objects [data {:keys [page-id component-id shapes]}] (letfn [(reg-objects [objects] - (reduce #(update %1 %2 update-group %1) objects + (reduce #(d/update-when %1 %2 update-group %1) objects (sequence (comp (mapcat #(cons % (cph/get-parents % objects))) (map #(get objects %))