From 2924791cb03e1aab4ba59d2b173fac590bef3ce5 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 30 Jan 2024 13:38:31 +0100 Subject: [PATCH] :bug: Fix non-root copy only allowed inside a copy migration error --- backend/src/app/features/components_v2.clj | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/src/app/features/components_v2.clj b/backend/src/app/features/components_v2.clj index 91449025a..9cc15aaef 100644 --- a/backend/src/app/features/components_v2.clj +++ b/backend/src/app/features/components_v2.clj @@ -746,10 +746,7 @@ (fix-shape [shape] (cond-> shape (@detached-ids (:shape-ref shape)) - (dissoc shape - :component-id - :component-file - :component-root)))] + (ctk/detach-shape)))] (-> file-data (update :pages-index update-vals fix-container) (d/update-when :components update-vals fix-container))))