From 8290b67ddb4a697ebee9441a159ec157cb04a06a Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Thu, 11 Dec 2025 13:21:16 +0100 Subject: [PATCH] :bug: Fix detach fails on nested components --- common/src/app/common/types/component.cljc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/types/component.cljc b/common/src/app/common/types/component.cljc index 01968f1373..93d31f63eb 100644 --- a/common/src/app/common/types/component.cljc +++ b/common/src/app/common/types/component.cljc @@ -147,12 +147,15 @@ "Check if some attribute is one that is involved in component syncrhonization. Note that design tokens also are involved, although they go by an alternate route and thus they are not part of :sync-attrs. - Also when detaching a nested copy it also needs to trigger a synchronization, - even though :shape-ref is not a synced attribute per se" + Also when detaching a nested copy or it also needs to trigger a synchronization, + even though :shape-ref or :component-id are not synced attribute per se" [attr] (or (get sync-attrs attr) (= :shape-ref attr) - (= :applied-tokens attr))) + (= :applied-tokens attr) + (= :component-id attr) + (= :component-file attr) + (= :component-root attr))) (defn instance-root? "Check if this shape is the head of a top instance."