From 6889440014b167b4bb5f14240d3890e314e86701 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Thu, 16 Mar 2023 10:52:27 +0100 Subject: [PATCH] :bug: Fix wrong shape-ref on duplicate component --- common/src/app/common/types/container.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/types/container.cljc b/common/src/app/common/types/container.cljc index 9afd743275..3c230e15cc 100644 --- a/common/src/app/common/types/container.cljc +++ b/common/src/app/common/types/container.cljc @@ -170,7 +170,7 @@ (-> (gsh/move delta) (dissoc :touched :main-instance?)) - (nil? (:shape-ref original-shape)) + (and (not main-instance?) (nil? (:shape-ref original-shape))) (assoc :shape-ref (:id original-shape)) (nil? (:parent-id original-shape))