mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
Fix workspace-data key missing
This commit is contained in:
@@ -18,10 +18,10 @@
|
|||||||
(group-by :group))))
|
(group-by :group))))
|
||||||
|
|
||||||
(defn get-active-theme-ids [state]
|
(defn get-active-theme-ids [state]
|
||||||
(:token-active-themes state))
|
(get-in state [:workspace-data :token-active-themes]))
|
||||||
|
|
||||||
(defn get-temp-theme-id [state]
|
(defn get-temp-theme-id [state]
|
||||||
(:token-theme-temporary-id state))
|
(get-in state [:workspace-data :token-theme-temporary-id]))
|
||||||
|
|
||||||
(defn update-theme-id
|
(defn update-theme-id
|
||||||
[state]
|
[state]
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
:else temporary-theme-id)))
|
:else temporary-theme-id)))
|
||||||
|
|
||||||
(defn get-workspace-token-theme [id state]
|
(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]
|
(defn add-token-set-to-token-theme [token-set-id token-theme]
|
||||||
(update token-theme :sets conj token-set-id))
|
(update token-theme :sets conj token-set-id))
|
||||||
|
|||||||
Reference in New Issue
Block a user