From c6bfae0d6340fce2657c5c48f5bc64a62b82d886 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 20 Mar 2025 13:36:27 +0100 Subject: [PATCH] :bug: Normalize set names on importing themes dtcg json --- common/src/app/common/types/tokens_lib.cljc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index e85cea19b..59d5f7580 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -1297,7 +1297,9 @@ Will return a value that matches this schema: (map (fn [theme] (-> theme (set/rename-keys {"selectedTokenSets" "sets"}) - (update "sets" keys))))) + (update "sets" keys) + (update "sets" #(map normalize-set-name %)))))) + active-sets (get metadata "activeSets") active-themes (get metadata "activeThemes") active-themes (if (empty? active-themes)