🐛 Fix remove flex button doesn’t work within variant

This commit is contained in:
Pablo Alba 2025-10-24 11:44:05 +02:00 committed by Pablo Alba
parent ed767d9a5b
commit e2ce226814
2 changed files with 3 additions and 7 deletions

View File

@ -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 doesnt work within variant [Taiga #12314](https://tree.taiga.io/project/penpot/issue/12314)
## 2.10.1

View File

@ -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))