From fae1df7f4bb877faf8a604462148070d6c065842 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Tue, 22 Apr 2025 09:18:31 +0200 Subject: [PATCH] :bug: Fix extract component variant from variant with path (#6303) --- common/src/app/common/logic/variant_properties.cljc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/src/app/common/logic/variant_properties.cljc b/common/src/app/common/logic/variant_properties.cljc index c35cdfccda..4305dfe25d 100644 --- a/common/src/app/common/logic/variant_properties.cljc +++ b/common/src/app/common/logic/variant_properties.cljc @@ -97,11 +97,8 @@ [changes shape] (let [data (pcb/get-library-data changes) component (ctcl/get-component data (:component-id shape) true) - new-name (str (:name component) - " / " - (if (ctk/is-variant? shape) - (str/replace (:variant-name shape) #", " " / ") - (:name shape))) + full-name (cfh/merge-path-item (:path component) (:name component)) + new-name (cfh/merge-path-item full-name (str/replace (:variant-name shape) #", " " / ")) [cpath cname] (cfh/parse-path-name new-name)] (-> changes (pcb/update-component (:component-id shape)