From 02986f81bd11536ddba0a18170b40de31809b3d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 13 Dec 2023 13:07:38 +0100 Subject: [PATCH] :bug: Avoid linking to remote main, when adding a shape to a copy For example, when doing a reset overrides after a component switch --- .../src/app/main/data/workspace/libraries_helpers.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/data/workspace/libraries_helpers.cljs b/frontend/src/app/main/data/workspace/libraries_helpers.cljs index dbf68f1333..c5634969a4 100644 --- a/frontend/src/app/main/data/workspace/libraries_helpers.cljs +++ b/frontend/src/app/main/data/workspace/libraries_helpers.cljs @@ -948,11 +948,11 @@ (:id parent-shape) (:frame-id parent-shape))) - (nil? (:shape-ref original-shape)) - (assoc :shape-ref (:id original-shape)) - set-remote-synced? - (assoc :remote-synced true)))) + (assoc :remote-synced true) + + :always + (assoc :shape-ref (:id original-shape))))) update-original-shape (fn [original-shape _new-shape] original-shape)