0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-26 08:29:42 -05:00

🐛 Avoid nil values for position-data

This commit is contained in:
Alejandro Alonso 2023-05-11 10:02:46 +02:00 committed by Alonso Torres
parent f3f708ee9d
commit 00d625ee33

View file

@ -90,7 +90,6 @@
[shape-id]
(when (some? shape-id)
(p/let [text-data (calc-text-node-positions shape-id)]
(when (d/not-empty? text-data)
(->> text-data
(mapv (fn [{:keys [node position text direction]}]
(let [{:keys [x y width height]} position
@ -113,4 +112,4 @@
:letter-spacing (str (get "letter-spacing"))
:font-style (str (get "font-style"))
:fills (transit/decode-str (get "--fills"))
:text text})))))))))
:text text}))))))))