From e43380ad6198e3e7298a76d21c818491947cf23d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 29 Jan 2024 15:39:04 +0100 Subject: [PATCH] :bug: Properly remove invalid text shapes on comp-v2 migration --- backend/src/app/features/components_v2.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/app/features/components_v2.clj b/backend/src/app/features/components_v2.clj index 271667354..e90e97793 100644 --- a/backend/src/app/features/components_v2.clj +++ b/backend/src/app/features/components_v2.clj @@ -284,7 +284,7 @@ (fn [shapes] (filterv #(not= id %) shapes))))) (and (cfh/text-shape? shape) - (not (seq (:content shape)))) + (not (valid-text-content? (:content shape)))) (dissoc objects id) :else