mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
Variadic function doesn't work for hooks
This commit is contained in:
@@ -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))
|
|
||||||
([options]
|
|
||||||
(-> (mf/deref refs/workspace-tokens)
|
(-> (mf/deref refs/workspace-tokens)
|
||||||
(use-resolved-tokens options))))
|
(use-resolved-tokens config)))
|
||||||
|
|
||||||
;; Testing ---------------------------------------------------------------------
|
;; Testing ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user