From ab0b3c71a8fad0cd2bd32b32bf9bfc6e32d51293 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 19 Mar 2024 07:32:13 +0100 Subject: [PATCH] :bug: Improve fixing root shapes for v1 components on migration to v2 --- backend/src/app/features/components_v2.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/features/components_v2.clj b/backend/src/app/features/components_v2.clj index a798b54c7..8e548466e 100644 --- a/backend/src/app/features/components_v2.clj +++ b/backend/src/app/features/components_v2.clj @@ -433,7 +433,8 @@ (letfn [(fix-component [components id component] (let [root-shape (ctst/get-shape component (:id component))] (if (or (empty? (:objects component)) - (nil? root-shape)) + (nil? root-shape) + (nil? (:type root-shape))) (dissoc components id) components)))]