From 54c506100da7a553ec6fa9064594ee0b6409f378 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Tue, 4 Jun 2024 10:53:53 +0200 Subject: [PATCH] :bug: Fix swap slot is not removed on parent detach (2) --- frontend/src/app/main/data/workspace/libraries_helpers.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace/libraries_helpers.cljs b/frontend/src/app/main/data/workspace/libraries_helpers.cljs index 4c3b9d803f..35585af2e3 100644 --- a/frontend/src/app/main/data/workspace/libraries_helpers.cljs +++ b/frontend/src/app/main/data/workspace/libraries_helpers.cljs @@ -233,8 +233,8 @@ ; If the initial shape was component-root, first level subinstances are converted in top instances (pcb/update-shapes [shape-id] #(assoc % :component-root true)) - component-root? - ; If the initial shape was component-root, first level subinstances can't have swap-slot + :always + ; First level subinstances of a detached component can't have swap-slot (pcb/update-shapes [shape-id] ctk/remove-swap-slot) :always