🐛 Fix error when selecting set in theme
Some checks failed
Commit Message Check / Check Commit Message (push) Has been cancelled

This commit is contained in:
Andrés Moya
2025-10-16 14:29:30 +02:00
committed by Andrés Moya
parent e964f9820e
commit 5ad04e0f4c
3 changed files with 9 additions and 1 deletions

View File

@@ -58,6 +58,7 @@
- Fix adding/removing identical text fills [Taiga #12287](https://tree.taiga.io/project/penpot/issue/12287) - Fix adding/removing identical text fills [Taiga #12287](https://tree.taiga.io/project/penpot/issue/12287)
- Fix scroll on the inspect tab [Taiga #12293](https://tree.taiga.io/project/penpot/issue/12293) - Fix scroll on the inspect tab [Taiga #12293](https://tree.taiga.io/project/penpot/issue/12293)
- Fix lock proportion tooltip [Taiga #12326](https://tree.taiga.io/project/penpot/issue/12326) - Fix lock proportion tooltip [Taiga #12326](https://tree.taiga.io/project/penpot/issue/12326)
- Fix internal Error when selecting a set by name in the token theme editor [Taiga #12310](https://tree.taiga.io/project/penpot/issue/12310)
## 2.10.1 ## 2.10.1

View File

@@ -864,6 +864,12 @@ test.describe("Tokens: Themes modal", () => {
} }
} }
const firstButton = await tokenThemeUpdateCreateModal
.getByTestId('tokens-set-item')
.first();
await firstButton.click();
await tokenThemeUpdateCreateModal await tokenThemeUpdateCreateModal
.getByRole("button", { .getByRole("button", {
name: "Save theme", name: "Save theme",

View File

@@ -319,7 +319,8 @@
(mf/use-fn (mf/use-fn
(mf/deps on-toggle-token-set) (mf/deps on-toggle-token-set)
(fn [set-id] (fn [set-id]
(on-toggle-token-set set-id)))] (let [set (ctob/get-set lib set-id)]
(on-toggle-token-set (ctob/get-name set)))))]
[:div {:class (stl/css :themes-modal-wrapper)} [:div {:class (stl/css :themes-modal-wrapper)}
[:> heading* {:level 2 :typography "headline-medium" :class (stl/css :themes-modal-title)} [:> heading* {:level 2 :typography "headline-medium" :class (stl/css :themes-modal-title)}