0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-20 05:34:23 -05:00

🐛 Fix shape color being removed for missing token references

This commit is contained in:
Florian Schroedl 2024-11-21 15:42:20 +01:00
parent 584f8be751
commit f79ccd52aa

View file

@ -129,10 +129,10 @@
:attrs [:strokes]}))
(defn update-color [f value shape-ids]
(let [color (some->> value
(tinycolor/valid-color)
(tinycolor/->hex)
(str "#"))]
(when-let [color (some->> value
(tinycolor/valid-color)
(tinycolor/->hex)
(str "#"))]
(f shape-ids {:color color} 0)))
(defn update-fill