0
Fork 0
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:
Florian Schroedl 2024-06-19 16:01:40 +02:00
parent 1596dbe155
commit 0c45d15fe7

View file

@ -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 ---------------------------------------------------------------------