From 14c639a425fc94634d9416119b6847768defcb83 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 27 Mar 2025 14:14:34 +0100 Subject: [PATCH] :bug: Fix bool type shape normalize migration --- common/src/app/common/files/migrations.cljc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/files/migrations.cljc b/common/src/app/common/files/migrations.cljc index 90e2f01a7f..4e1f585186 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -1247,9 +1247,11 @@ ;; rollback, we still need to perform an other migration ;; for properly delete the bool-content prop from shapes ;; once the know the migration was OK - (if-let [content (:bool-content object)] - (assoc object :content content) - object)) + (if (cfh/bool-shape? object) + (if-let [content (:bool-content object)] + (assoc object :content content) + object) + (dissoc object :bool-content :bool-type))) (update-container [container] (d/update-when container :objects update-vals update-object))]