diff --git a/frontend/src/app/main/ui/workspace/tokens/changes.cljs b/frontend/src/app/main/ui/workspace/tokens/changes.cljs index 8c31b729b..3cea08e69 100644 --- a/frontend/src/app/main/ui/workspace/tokens/changes.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/changes.cljs @@ -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