mirror of
https://github.com/penpot/penpot.git
synced 2025-04-01 01:21:21 -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
|
(defmethod migrate 39
|
||||||
[data]
|
[data]
|
||||||
(letfn [(update-shape [shape]
|
(letfn [(update-shape [shape]
|
||||||
(if (and (cfh/bool-shape? shape)
|
(cond
|
||||||
(not (contains? shape :bool-content)))
|
(and (cfh/bool-shape? shape)
|
||||||
|
(not (contains? shape :bool-content)))
|
||||||
(assoc shape :bool-content [])
|
(assoc shape :bool-content [])
|
||||||
|
|
||||||
|
(and (cfh/path-shape? shape)
|
||||||
|
(not (contains? shape :content)))
|
||||||
|
(assoc shape :content [])
|
||||||
|
|
||||||
|
:else
|
||||||
shape))
|
shape))
|
||||||
|
|
||||||
(update-container [container]
|
(update-container [container]
|
||||||
|
|
Loading…
Add table
Reference in a new issue