0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐛 Fix error on press escape while renamming a component

This commit is contained in:
Pablo Alba 2023-08-23 12:39:37 +02:00 committed by Andrés Moya
parent 027ef48e66
commit c3f73ff7aa

View file

@ -667,7 +667,7 @@
(rx/of (update-shape shape-id {:name name})))
;; Update the component in case if shape is a main instance
(when (:main-instance shape)
(when (and (string? name) (not (str/blank? name)) (:main-instance shape))
(when-let [component-id (:component-id shape)]
(rx/of (dwl/rename-component component-id name)))))))))))