mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Variadic function doesn't work for hooks
This commit is contained in:
parent
1596dbe155
commit
0c45d15fe7
1 changed files with 3 additions and 5 deletions
|
@ -128,11 +128,9 @@
|
|||
(reset! tokens-state resolved-tokens))))))))
|
||||
@tokens-state))
|
||||
|
||||
(defn use-resolved-workspace-tokens
|
||||
([] (use-resolved-tokens nil))
|
||||
([options]
|
||||
(-> (mf/deref refs/workspace-tokens)
|
||||
(use-resolved-tokens options))))
|
||||
(defn use-resolved-workspace-tokens [& {:as config}]
|
||||
(-> (mf/deref refs/workspace-tokens)
|
||||
(use-resolved-tokens config)))
|
||||
|
||||
;; Testing ---------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue