mirror of
https://github.com/penpot/penpot.git
synced 2026-05-06 00:28:43 +00:00
🐛 Fix error on press escape while renamming a component
This commit is contained in:
parent
027ef48e66
commit
c3f73ff7aa
@ -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)))))))))))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user