0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix problem with incorrect content

This commit is contained in:
alonso.torres 2021-09-29 12:10:35 +02:00
parent 165a84534a
commit 4b9e7fdb15

View file

@ -376,7 +376,11 @@
(not (nil? c1x)) (set-tr :c1x :c1y)
(not (nil? c2x)) (set-tr :c2x :c2y)))]
(mapv #(update % :params transform-params) content)))
(->> content
(mapv (fn [cmd]
(cond-> cmd
(map? cmd)
(update :params transform-params)))))))
(defn transform-content
[content transform]