mirror of
https://github.com/penpot/penpot.git
synced 2026-05-10 18:48:23 +00:00
✨ Make the bool-content normalize migration idempotent
This commit is contained in:
parent
7f2e819789
commit
15c91a5de5
@ -1284,7 +1284,8 @@
|
||||
;; 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 (cfh/bool-shape? object)
|
||||
(if (and (cfh/bool-shape? object)
|
||||
(not (contains? object :content)))
|
||||
(if-let [content (:bool-content object)]
|
||||
(assoc object :content content)
|
||||
object)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user