From f79ccd52aa90bef551b601e3237564c768a086a7 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Thu, 21 Nov 2024 15:42:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20shape=20color=20being=20re?= =?UTF-8?q?moved=20for=20missing=20token=20references?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/app/main/ui/workspace/tokens/changes.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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