0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

🐛 Fix impossible to add group to typographies

This commit is contained in:
Alejandro Alonso 2023-06-23 12:48:09 +02:00 committed by Andrey Antukh
parent a8e058ada6
commit f75b111564

View file

@ -1893,7 +1893,7 @@
create-group create-group
(mf/use-fn (mf/use-fn
(mf/deps typographies selected on-clear-selection file-id) (mf/deps typographies selected on-clear-selection file-id (:id @state))
(fn [group-name] (fn [group-name]
(on-clear-selection) (on-clear-selection)
(let [undo-id (js/Symbol)] (let [undo-id (js/Symbol)]
@ -1927,7 +1927,7 @@
on-group on-group
(mf/use-fn (mf/use-fn
(mf/deps typographies selected) (mf/deps typographies selected create-group)
(fn [event] (fn [event]
(dom/stop-propagation event) (dom/stop-propagation event)
(modal/show! :name-group-dialog {:accept create-group}))) (modal/show! :name-group-dialog {:accept create-group})))