0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Fix missing function shorthand

This commit is contained in:
Florian Schroedl 2024-07-30 06:57:21 +02:00
parent f69db7ce9e
commit 1d4b417501

View file

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