From f5596b2b3fa2b99019d64c2f442a601ae8820804 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Thu, 24 Oct 2024 10:13:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Temporary=20fix=20for=20import?= =?UTF-8?q?=20on=20sets=20with=20groups=20(/=20delimiter)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/main/ui/workspace/tokens/style_dictionary.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs index 65efbcfa00..849bc71855 100644 --- a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs @@ -137,7 +137,8 @@ (->> data-stream (rx/map (fn [data] (try - (t/decode-str data) + (-> (str/replace data "/" "-") ;; TODO Remove when token groups work + (t/decode-str)) (catch js/Error e (throw (wte/error-ex-info :error.import/json-parse-error data e)))))) (rx/map (fn [json-data]