From 1d4b4175012e10621bced361333b4a1d82525f8a Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Tue, 30 Jul 2024 06:57:21 +0200 Subject: [PATCH] Fix missing function shorthand --- .../src/app/main/ui/workspace/tokens/context_menu.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs b/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs index 34a6df684..615f758d4 100644 --- a/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs @@ -45,9 +45,10 @@ {:title title :selected? selected? - :action (if selected? - (st/emit! (wtch/unapply-token props)) - (st/emit! (wtch/apply-token (assoc props :on-update-shape on-update-shape-fn))))})) + :action (fn [] + (if selected? + (st/emit! (wtch/unapply-token props)) + (st/emit! (wtch/apply-token (assoc props :on-update-shape on-update-shape-fn)))))})) attributes))) (defn all-or-sepearate-actions [{:keys [attribute-labels on-update-shape-all on-update-shape]}