mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
🐛 Fix text shapes content internal data type incosistency
This commit is contained in:
parent
9f80ddd125
commit
adffd1f000
1 changed files with 8 additions and 1 deletions
|
@ -795,9 +795,16 @@
|
||||||
|
|
||||||
(defmethod migrate 43
|
(defmethod migrate 43
|
||||||
[data]
|
[data]
|
||||||
(letfn [(update-text-node [node]
|
(letfn [(number->string [v]
|
||||||
|
(if (number? v)
|
||||||
|
(str v)
|
||||||
|
v))
|
||||||
|
|
||||||
|
(update-text-node [node]
|
||||||
(-> node
|
(-> node
|
||||||
(d/update-when :fills #(filterv valid-fill? %))
|
(d/update-when :fills #(filterv valid-fill? %))
|
||||||
|
(d/update-when :font-size number->string)
|
||||||
|
(d/update-when :font-weight number->string)
|
||||||
(d/without-nils)))
|
(d/without-nils)))
|
||||||
|
|
||||||
(update-object [object]
|
(update-object [object]
|
||||||
|
|
Loading…
Add table
Reference in a new issue