From 97ae295cb9cefbbbb94f52e594fe74b7cd2c0fcc Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 11 Oct 2024 11:55:22 +0200 Subject: [PATCH] :bug: Fix problem updating layout when toggle visibility in component copy --- CHANGES.md | 1 + common/src/app/common/logic/shapes.cljc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d1f27cfbe..77d2c8c4e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -38,6 +38,7 @@ - Fix problem when translating multiple path points [Github #4459](https://github.com/penpot/penpot/issues/4459) - Fix problem on importing (and exporting) files with flows [Taiga #8914](https://tree.taiga.io/project/penpot/issue/8914) - Fix Internal Error page: "go to your penpot" wrong design [Taiga #8922](https://tree.taiga.io/project/penpot/issue/8922) +- Fix problem updating layout when toggle visibility in component copy[Github #5143](https://github.com/penpot/penpot/issues/5143) - Fix "Done" button on toolbar on inspect mode should go to design mode [Taiga #8933](https://tree.taiga.io/project/penpot/issue/8933) ## 2.2.1 diff --git a/common/src/app/common/logic/shapes.cljc b/common/src/app/common/logic/shapes.cljc index de3bd4c83..1bb1b109a 100644 --- a/common/src/app/common/logic/shapes.cljc +++ b/common/src/app/common/logic/shapes.cljc @@ -124,7 +124,7 @@ ;; All parents of any deleted shape must be resized. (into res (cfh/get-parent-ids objects id))) (d/ordered-set) - ids-to-delete) + (concat ids-to-delete ids-to-hide)) all-children (->> ids-to-delete ;; Children of deleted shapes must be also deleted.