🐛 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,7 +129,7 @@
:attrs [:strokes]})) :attrs [:strokes]}))
(defn update-color [f value shape-ids] (defn update-color [f value shape-ids]
(let [color (some->> value (when-let [color (some->> value
(tinycolor/valid-color) (tinycolor/valid-color)
(tinycolor/->hex) (tinycolor/->hex)
(str "#"))] (str "#"))]