From 3d7a3f27d5df647e07f9ef1e1675c78f10f1d50d Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 28 May 2021 11:05:18 +0200 Subject: [PATCH] :bug: Fix problem with move-objects --- 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 5d2624574..80be617ec 100644 --- a/common/app/common/pages/changes.cljc +++ b/common/app/common/pages/changes.cljc @@ -276,7 +276,7 @@ (if (and valid? (seq shapes)) (as-> objects $ ;; Add the new shapes to the parent object. - (update $ parent-id #(add-to-parent % index shapes)) + (d/update-when $ parent-id #(add-to-parent % index shapes)) ;; Update each individual shape link to the new parent (reduce update-parent-id $ shapes)