mirror of
https://github.com/penpot/penpot.git
synced 2025-03-28 15:41:25 -05:00
🐛 Fix path shapes that does not have :content attr
This commit is contained in:
parent
0e724ac821
commit
9f80ddd125
1 changed files with 9 additions and 2 deletions
|
@ -697,9 +697,16 @@
|
|||
(defmethod migrate 39
|
||||
[data]
|
||||
(letfn [(update-shape [shape]
|
||||
(if (and (cfh/bool-shape? shape)
|
||||
(not (contains? shape :bool-content)))
|
||||
(cond
|
||||
(and (cfh/bool-shape? shape)
|
||||
(not (contains? shape :bool-content)))
|
||||
(assoc shape :bool-content [])
|
||||
|
||||
(and (cfh/path-shape? shape)
|
||||
(not (contains? shape :content)))
|
||||
(assoc shape :content [])
|
||||
|
||||
:else
|
||||
shape))
|
||||
|
||||
(update-container [container]
|
||||
|
|
Loading…
Add table
Reference in a new issue