From e2ce2268142c343a0d478c56940072ed6300580d Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Fri, 24 Oct 2025 11:44:05 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20Fix=20remove=20flex=20button=20doesn?= =?UTF-8?q?=E2=80=99t=20work=20within=20variant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 1 + frontend/src/app/main/data/workspace/shape_layout.cljs | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 9ae80438ce..a98e46b382 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -68,6 +68,7 @@ - Fix selected colors not showing colors from children shapes in multiple selection [Taiga #12384](https://tree.taiga.io/project/penpot/issue/12385) - Fix scrollbar issue in design tab [Taiga #12367](https://tree.taiga.io/project/penpot/issue/12367) - Fix library update notificacions showing when they should not [Taiga #12397](https://tree.taiga.io/project/penpot/issue/12397) +- Fix remove flex button doesn’t work within variant [Taiga #12314](https://tree.taiga.io/project/penpot/issue/12314) ## 2.10.1 diff --git a/frontend/src/app/main/data/workspace/shape_layout.cljs b/frontend/src/app/main/data/workspace/shape_layout.cljs index 2279000ae0..e31b892a8f 100644 --- a/frontend/src/app/main/data/workspace/shape_layout.cljs +++ b/frontend/src/app/main/data/workspace/shape_layout.cljs @@ -235,13 +235,8 @@ [ids] (ptk/reify ::remove-shape-layout ptk/WatchEvent - (watch [_ state _] - (let [objects (dsh/lookup-page-objects state) - ids (->> ids - (remove #(->> % - (get objects) - (ctc/is-variant?)))) - undo-id (js/Symbol)] + (watch [_ _ _] + (let [undo-id (js/Symbol)] (rx/of (dwu/start-undo-transaction undo-id) (dwsh/update-shapes ids #(apply dissoc % layout-keys))