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:
parent
879ef1123f
commit
3e41e7d234
1 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue