From 9ab067b6d8a5c7523096fb94ddc98a7bb99e9d51 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 27 Jun 2023 11:23:30 +0200 Subject: [PATCH] :bug: Fix add group to graphics and components --- frontend/src/app/main/ui/workspace/sidebar/assets.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs index 593f3b950..339aa0bf6 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs @@ -733,7 +733,7 @@ on-group (mf/use-fn - (mf/deps components selected) + (mf/deps components selected create-group) (fn [event] (dom/stop-propagation event) (modal/show! :name-group-dialog {:accept create-group}))) @@ -1110,7 +1110,7 @@ create-group (mf/use-fn - (mf/deps objects selected on-clear-selection) + (mf/deps objects selected on-clear-selection (:object-id @state)) (fn [group-name] (on-clear-selection) (let [undo-id (js/Symbol)] @@ -1138,7 +1138,7 @@ on-group (mf/use-fn - (mf/deps objects selected) + (mf/deps objects selected create-group) (fn [event] (dom/stop-propagation event) (modal/show! :name-group-dialog {:accept create-group}))) @@ -1868,7 +1868,7 @@ (seq (:colors selected))) open-groups-ref (mf/with-memo [open-status-ref] - (-> (l/in [:groups :components]) + (-> (l/in [:groups :typographies]) (l/derived open-status-ref))) open-groups (mf/deref open-groups-ref)