From d060ddaeae148ff5d4d14661f77f110309dacdd9 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Mon, 26 Sep 2022 09:45:33 +0200 Subject: [PATCH] :bug: Fix ungroup does not work for typographies --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/sidebar/assets.cljs | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 8ad7a3577..cd3c68c3a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -38,6 +38,7 @@ - Fix unexpected 404 on deleting library that is used by deleted files - Fix inconsistent message on deleting library when a library is linked from deleted files - Fix change multiple colors with SVG [Taiga #3889](https://tree.taiga.io/project/penpot/issue/3889) +- Fix ungroup does not work for typographies [Taiga #4195](https://tree.taiga.io/project/penpot/issue/4195) ### :arrow_up: Deps updates ### :heart: Community contributions by (Thank you!) diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs index e6868b1ea..5866dd96e 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs @@ -1736,10 +1736,10 @@ (apply st/emit! (->> typographies (filter #(str/starts-with? (:path %) path)) - (map #(dwl/update-typography - (assoc % :name - (ungroup % path)) - file-id)))) + (map #(dwl/rename-typography + file-id + (:id %) + (ungroup % path))))) (st/emit! (dwu/commit-undo-transaction)))) on-context-menu