From 9c626d22c791dade8635a1c5cbdcb6028dad4929 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 5 Feb 2025 13:24:07 +0100 Subject: [PATCH] :bug: Fix problem in plugins with renaming components --- CHANGES.md | 1 + frontend/src/app/plugins/library.cljs | 2 +- frontend/src/app/plugins/shape.cljs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7448619b73..b300b83bc1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -56,6 +56,7 @@ is a number of cores) - Fix problem with strokes not refreshing in Safari [Taiga #9040](https://tree.taiga.io/project/penpot/issue/9040) - Fix problem with multiple color changes [Taiga #9631](https://tree.taiga.io/project/penpot/issue/9631) - Fix problem in plugins with zoomIntoView [Plugins #189](https://github.com/penpot/penpot-plugins/issues/189) +- Fix problem in plugins with renaming components [Taiga #10060](https://tree.taiga.io/project/penpot/issue/10060) ## 2.4.3 diff --git a/frontend/src/app/plugins/library.cljs b/frontend/src/app/plugins/library.cljs index df5e053109..a269d2ab52 100644 --- a/frontend/src/app/plugins/library.cljs +++ b/frontend/src/app/plugins/library.cljs @@ -641,7 +641,7 @@ :else (let [component (u/proxy->library-component self) value (dm/str (d/nilv (:path component) "") " / " value)] - (st/emit! (dwl/rename-component id value)))))} + (st/emit! (dwl/rename-component-and-main-instance id value)))))} :path {:this true diff --git a/frontend/src/app/plugins/shape.cljs b/frontend/src/app/plugins/shape.cljs index a16deb8aaa..e23917d130 100644 --- a/frontend/src/app/plugins/shape.cljs +++ b/frontend/src/app/plugins/shape.cljs @@ -211,7 +211,7 @@ (u/display-not-valid :name value) :else - (st/emit! (dwsh/update-shapes [id] #(assoc % :name value))))))} + (st/emit! (dw/end-rename-shape id value)))))} :blocked {:this true