0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Fix workspace-data key missing

This commit is contained in:
Florian Schroedl 2024-08-16 11:32:20 +02:00
parent 879ef1123f
commit 3e41e7d234

View file

@ -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))