From b4a7a150454c7db83d954bcfb4efd5eb96c72714 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Thu, 23 May 2024 11:11:00 +0200 Subject: [PATCH] Revert ":bug: swap slot is not copied on copy-paste of a main" This reverts commit 2a752e36250ebc288a74b80d235dbc9afba699d2. --- common/src/app/common/types/container.cljc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/src/app/common/types/container.cljc b/common/src/app/common/types/container.cljc index d038ca50c8..b50c5058ab 100644 --- a/common/src/app/common/types/container.cljc +++ b/common/src/app/common/types/container.cljc @@ -386,8 +386,7 @@ (fn [new-shape original-shape] (let [new-name (:name new-shape) root? (or (ctk/instance-root? original-shape) ; If shape is inside a component (not components-v2) - (nil? (:parent-id original-shape))) ; we detect it by having no parent) - swap-slot (ctk/get-swap-slot original-shape)] + (nil? (:parent-id original-shape)))] ; we detect it by having no parent) (when root? (vswap! unames conj new-name)) @@ -399,9 +398,6 @@ (-> (gsh/move delta) (dissoc :touched)) - (some? swap-slot) - (assoc :touched #{(ctk/build-swap-slot-group swap-slot)}) - (and main-instance? root?) (assoc :main-instance true)