mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 21:11:37 +02:00
🐛 Fix shape color being removed for missing token references
This commit is contained in:
parent
584f8be751
commit
f79ccd52aa
1 changed files with 4 additions and 4 deletions
|
@ -129,10 +129,10 @@
|
||||||
: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 "#"))]
|
||||||
(f shape-ids {:color color} 0)))
|
(f shape-ids {:color color} 0)))
|
||||||
|
|
||||||
(defn update-fill
|
(defn update-fill
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue