From 743397323df05e174ef8a6a20b3fda594d06caec Mon Sep 17 00:00:00 2001 From: Eva Date: Wed, 12 Jul 2023 10:35:20 +0200 Subject: [PATCH] :bug: Fix create typography with section closed --- CHANGES.md | 1 + .../src/app/main/ui/workspace/sidebar/assets/typographies.cljs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index da89880de..c1cc59d8a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -89,6 +89,7 @@ - Locks shapes when moved inside a locked parent [Taiga #5252](https://tree.taiga.io/project/penpot/issue/5252) - Fix rotate several elements in bulk [Taiga #5165](https://tree.taiga.io/project/penpot/issue/5165) - Fix onboarding slides height [Taiga #5373](https://tree.taiga.io/project/penpot/issue/5373) +- Fix create typography with section closed [Taiga #5574](https://tree.taiga.io/project/penpot/issue/5574) ### :arrow_up: Deps updates diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets/typographies.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets/typographies.cljs index ab8da5c9a..46d90841e 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets/typographies.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets/typographies.cljs @@ -11,6 +11,7 @@ [app.common.data.macros :as dm] [app.common.pages.helpers :as cph] [app.main.data.modal :as modal] + [app.main.data.workspace :as dw] [app.main.data.workspace.libraries :as dwl] [app.main.data.workspace.texts :as dwt] [app.main.data.workspace.undo :as dwu] @@ -344,6 +345,7 @@ (mf/use-fn (mf/deps file-id) (fn [_] + (st/emit! (dw/set-assets-section-open file-id :typographies true)) (st/emit! (dwt/add-typography file-id)))) handle-change