From 57a569a07a9aa5a2d310006ce0e05392aca7f61a Mon Sep 17 00:00:00 2001 From: Eva Date: Thu, 12 Jan 2023 14:30:13 +0100 Subject: [PATCH] :bug: Fix alignment on justify content space between --- frontend/src/app/main/data/workspace/libraries.cljs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index a4ce6a4a5..9c75d03ae 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -476,9 +476,14 @@ component-id position page - libraries)] - (rx/of (dch/commit-changes changes) - (dws/select-shapes (d/ordered-set (:id new-shape)))))))) + libraries) + undo-id (js/Symbol)] + (rx/of (dwu/start-undo-transaction undo-id) + (dch/commit-changes changes) + (ptk/data-event :layout/update [(:id new-shape)]) + (dws/select-shapes (d/ordered-set (:id new-shape))) + + (dwu/commit-undo-transaction undo-id)))))) (defn detach-component "Remove all references to components in the shape with the given id,