mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -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))))))))
|
(reset! tokens-state resolved-tokens))))))))
|
||||||
@tokens-state))
|
@tokens-state))
|
||||||
|
|
||||||
(defn use-resolved-workspace-tokens
|
(defn use-resolved-workspace-tokens [& {:as config}]
|
||||||
([] (use-resolved-tokens nil))
|
(-> (mf/deref refs/workspace-tokens)
|
||||||
([options]
|
(use-resolved-tokens config)))
|
||||||
(-> (mf/deref refs/workspace-tokens)
|
|
||||||
(use-resolved-tokens options))))
|
|
||||||
|
|
||||||
;; Testing ---------------------------------------------------------------------
|
;; Testing ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue