From 43d3b06c3023a1f00731331d26ecf25f665f4dd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Thu, 19 May 2022 17:47:46 +0200 Subject: [PATCH] :bug: Fix some component shapes not synced --- .../main/data/workspace/libraries_helpers.cljs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/frontend/src/app/main/data/workspace/libraries_helpers.cljs b/frontend/src/app/main/data/workspace/libraries_helpers.cljs index 700e87c0eb..5172481ca5 100644 --- a/frontend/src/app/main/data/workspace/libraries_helpers.cljs +++ b/frontend/src/app/main/data/workspace/libraries_helpers.cljs @@ -549,18 +549,19 @@ (:shapes shape-main)) only-inst (fn [changes child-inst] - (when-not (and omit-touched? - (contains? (:touched shape-inst) - :shapes-group)) + (if-not (and omit-touched? + (contains? (:touched shape-inst) + :shapes-group)) (remove-shape changes child-inst container - omit-touched?))) + omit-touched?) + changes)) only-main (fn [changes child-main] - (when-not (and omit-touched? - (contains? (:touched shape-inst) - :shapes-group)) + (if-not (and omit-touched? + (contains? (:touched shape-inst) + :shapes-group)) (add-shape-to-instance changes child-main (d/index-of children-main @@ -570,7 +571,8 @@ root-inst root-main omit-touched? - set-remote-synced?))) + set-remote-synced?) + changes)) both (fn [changes child-inst child-main] (generate-sync-shape-direct-recursive changes