🐛 Fix bool type shape normalize migration

This commit is contained in:
Andrey Antukh 2025-03-27 14:14:34 +01:00
parent 06bfb1ad26
commit 14c639a425

View File

@ -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))]