From 5d600c6715c37c27871a56091863fdf5b9736efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 2 Apr 2025 09:41:12 +0200 Subject: [PATCH] :sparkles: Change behavior of single set json file import to be coherent (#6211) --- .../src/app/main/ui/workspace/tokens/style_dictionary.cljs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 a31f0635ac..d04ed352e9 100644 --- a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs @@ -6,7 +6,6 @@ [app.common.schema :as sm] [app.common.transit :as t] [app.common.types.tokens-lib :as ctob] - [app.main.refs :as refs] [app.main.ui.workspace.tokens.errors :as wte] [app.main.ui.workspace.tokens.tinycolor :as tinycolor] [app.main.ui.workspace.tokens.token :as wtt] @@ -268,11 +267,11 @@ (cond (and single-set? (= :json-format/legacy json-format)) - (ctob/decode-single-set-legacy-json (ctob/ensure-tokens-lib (deref refs/tokens-lib)) file-name json-data) + (ctob/decode-single-set-legacy-json (ctob/ensure-tokens-lib nil) file-name json-data) (and single-set? (= :json-format/dtcg json-format)) - (ctob/decode-single-set-json (ctob/ensure-tokens-lib (deref refs/tokens-lib)) file-name json-data) + (ctob/decode-single-set-json (ctob/ensure-tokens-lib nil) file-name json-data) (= :json-format/legacy json-format) (ctob/decode-legacy-json (ctob/ensure-tokens-lib nil) json-data)