diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index 9aa6392b4..7a51f5003 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -215,8 +215,8 @@ (defn split-token-set-path [path] (split-path path set-separator)) -(defn set-full-name->prefixed-full-path [set-full-name-string] - (-> (split-token-set-path set-full-name-string) +(defn set-full-name->prefixed-full-path [full-path-str] + (-> (split-token-set-path full-path-str) (set-full-path->set-prefixed-full-path))) (defn get-token-set-prefixed-path [token-set] diff --git a/frontend/src/app/main/data/tokens.cljs b/frontend/src/app/main/data/tokens.cljs index 7eb1b8687..0b8aec15d 100644 --- a/frontend/src/app/main/data/tokens.cljs +++ b/frontend/src/app/main/data/tokens.cljs @@ -89,11 +89,11 @@ (get (:tokens workspace-data) id))) (defn set-selected-token-set-path - [id] + [full-path] (ptk/reify ::set-selected-token-set-path ptk/UpdateEvent (update [_ state] - (wtts/assoc-selected-token-set-path state id)))) + (wtts/assoc-selected-token-set-path state full-path)))) (defn set-selected-token-set-path-from-name [token-set-name]