From 6ed470ed5f836e4ee06a8dde4560cae062ac64b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Fri, 11 Dec 2020 11:14:29 +0100 Subject: [PATCH] :bug: Clear touched flags when detaching a component --- frontend/src/app/main/data/workspace/libraries.cljs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index a2276906c..85426c272 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -448,6 +448,9 @@ :val nil} {:type :set :attr :shape-ref + :val nil} + {:type :set + :attr :touched :val nil}]}) shapes) @@ -466,7 +469,10 @@ :val (:component-root? obj)} {:type :set :attr :shape-ref - :val (:shape-ref obj)}]}) + :val (:shape-ref obj)} + {:type :set + :attr :touched + :val (:touched obj)}]}) shapes)] (rx/of (dwc/commit-changes rchanges uchanges {:commit-local? true}))))))