From 644c796772a329bc09653000ad366d0b3019929c Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 9 May 2022 16:44:36 +0200 Subject: [PATCH] :bug: Fix problem with path edition --- .../src/app/main/data/workspace/path/changes.cljs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/src/app/main/data/workspace/path/changes.cljs b/frontend/src/app/main/data/workspace/path/changes.cljs index 697965eb4..343b33ec2 100644 --- a/frontend/src/app/main/data/workspace/path/changes.cljs +++ b/frontend/src/app/main/data/workspace/path/changes.cljs @@ -23,9 +23,22 @@ (us/verify ::spec/content new-content) (let [shape-id (:id shape) + [old-points old-selrect] + (helpers/content->points+selrect shape old-content) + [new-points new-selrect] (helpers/content->points+selrect shape new-content) + ;; We set the old values so the update-shapes works + objects + (-> objects + (update + shape-id + assoc + :content old-content + :selrect old-selrect + :points old-points)) + changes (-> (pcb/empty-changes it page-id) (pcb/with-objects objects))]