mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 04:49:03 -05:00
🐛 Fix error on press escape while renamming a component
This commit is contained in:
parent
027ef48e66
commit
c3f73ff7aa
1 changed files with 1 additions and 1 deletions
|
@ -667,7 +667,7 @@
|
||||||
(rx/of (update-shape shape-id {:name name})))
|
(rx/of (update-shape shape-id {:name name})))
|
||||||
|
|
||||||
;; Update the component in case if shape is a main instance
|
;; 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)]
|
(when-let [component-id (:component-id shape)]
|
||||||
(rx/of (dwl/rename-component component-id name)))))))))))
|
(rx/of (dwl/rename-component component-id name)))))))))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue