From 43b1d3ca4332fd70894e493f7ccec49687245589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Mon, 11 Jan 2021 16:08:52 +0100 Subject: [PATCH] :bug: Regenerate components after resize in sync --- .../app/main/data/workspace/libraries_helpers.cljs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/app/main/data/workspace/libraries_helpers.cljs b/frontend/src/app/main/data/workspace/libraries_helpers.cljs index 4cd731c02..a6fcddfe1 100644 --- a/frontend/src/app/main/data/workspace/libraries_helpers.cljs +++ b/frontend/src/app/main/data/workspace/libraries_helpers.cljs @@ -995,15 +995,27 @@ :else uoperations) + all-parents (or (cp/get-parents dest-shape (:objects container)) []) + rchanges [(as-> {:type :mod-obj :id (:id dest-shape) :operations roperations} $ + (if (cp/page? container) + (assoc $ :page-id (:id container)) + (assoc $ :component-id (:id container)))) + (as-> {:type :reg-objects + :shapes all-parents} $ (if (cp/page? container) (assoc $ :page-id (:id container)) (assoc $ :component-id (:id container))))] uchanges [(as-> {:type :mod-obj :id (:id dest-shape) :operations uoperations} $ + (if (cp/page? container) + (assoc $ :page-id (:id container)) + (assoc $ :component-id (:id container)))) + (as-> {:type :reg-objects + :shapes all-parents} $ (if (cp/page? container) (assoc $ :page-id (:id container)) (assoc $ :component-id (:id container))))]]