From 3e41e7d2343227f5b67c29feb1c98af6d0224121 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Fri, 16 Aug 2024 11:32:20 +0200 Subject: [PATCH] Fix workspace-data key missing --- frontend/src/app/main/ui/workspace/tokens/token_set.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 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 0681e078b..013fd2586 100644 --- a/frontend/src/app/main/ui/workspace/tokens/token_set.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/token_set.cljs @@ -18,10 +18,10 @@ (group-by :group)))) (defn get-active-theme-ids [state] - (:token-active-themes state)) + (get-in state [:workspace-data :token-active-themes])) (defn get-temp-theme-id [state] - (:token-theme-temporary-id state)) + (get-in state [:workspace-data :token-theme-temporary-id])) (defn update-theme-id [state] @@ -33,7 +33,7 @@ :else temporary-theme-id))) (defn get-workspace-token-theme [id state] - (get-in state (get-in state [:workspace-data :token-sets-index id]))) + (get-in state [:workspace-data :token-themes-index id])) (defn add-token-set-to-token-theme [token-set-id token-theme] (update token-theme :sets conj token-set-id))