mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
✨ Make the bool-content normalize migration idempotent
This commit is contained in:
parent
7f2e819789
commit
15c91a5de5
1 changed files with 2 additions and 1 deletions
|
@ -1284,7 +1284,8 @@
|
||||||
;; rollback, we still need to perform an other migration
|
;; rollback, we still need to perform an other migration
|
||||||
;; for properly delete the bool-content prop from shapes
|
;; for properly delete the bool-content prop from shapes
|
||||||
;; once the know the migration was OK
|
;; 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)]
|
(if-let [content (:bool-content object)]
|
||||||
(assoc object :content content)
|
(assoc object :content content)
|
||||||
object)
|
object)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue