From 0c45d15fe7fc171e8ff6cd26dec8269a29d442ea Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Wed, 19 Jun 2024 16:01:40 +0200 Subject: [PATCH] Variadic function doesn't work for hooks --- .../app/main/ui/workspace/tokens/style_dictionary.cljs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs index ba32c17eb..f1e1c7a7d 100644 --- a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs @@ -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 ---------------------------------------------------------------------