From c6fb21187454d053183a29ecd303337ca410e5e1 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 1 Feb 2024 11:25:16 +0100 Subject: [PATCH] :bug: Fix copies of detached elements migration --- backend/src/app/features/components_v2.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/app/features/components_v2.clj b/backend/src/app/features/components_v2.clj index 94094db5e..71b0c538a 100644 --- a/backend/src/app/features/components_v2.clj +++ b/backend/src/app/features/components_v2.clj @@ -941,8 +941,9 @@ (fix-component-nil-objects) (fix-false-copies) (fix-component-root-without-component) - (fix-copies-of-detached)))) ; <- Do not add fixes after this one - + (fix-copies-of-detached); <- Do not add fixes after this and fix-orphan-copies call + ; This extra call to fix-orphan-copies after fix-copies-of-detached because we can have detached subtrees with invalid shape-ref attributes + (fix-orphan-copies)))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; COMPONENTS MIGRATION ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;