0
Fork 0
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:
Andrey Antukh 2024-01-25 17:21:05 +01:00
parent 9f80ddd125
commit adffd1f000

View file

@ -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]