From a49992a74e915ae9d0a0796ef458a281f0bde498 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Mon, 30 Sep 2024 09:38:01 +0200 Subject: [PATCH] Fix token updating --- .../src/app/main/ui/workspace/tokens/token_set.cljs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/token_set.cljs b/frontend/src/app/main/ui/workspace/tokens/token_set.cljs index 20ebb5d81..bbddbd0da 100644 --- a/frontend/src/app/main/ui/workspace/tokens/token_set.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/token_set.cljs @@ -75,17 +75,8 @@ (defn get-active-theme-sets-tokens-names-map [state] - (let [active-set-ids (get-ordered-active-set-ids state)] - (reduce - (fn [names-map-acc set-id] - (let [token-ids (get-workspace-token-set-tokens set-id state)] - (reduce - (fn [acc token-id] - (if-let [token (wtt/get-workspace-token token-id state)] - (assoc acc (wtt/token-identifier token) token) - acc)) - names-map-acc token-ids))) - (ordered-map) active-set-ids))) + (when-let [lib (get-workspace-tokens-lib state)] + (ctob/get-active-themes-set-tokens lib))) ;; === Set selection