mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
🐛 Fix user can set a blank name for the component in assets
This commit is contained in:
parent
6b09ebb75d
commit
3192b55836
1 changed files with 3 additions and 2 deletions
|
@ -490,8 +490,9 @@
|
|||
(mf/deps current-component-id)
|
||||
(fn [new-name]
|
||||
(swap! state* dissoc :renaming)
|
||||
(st/emit!
|
||||
(dwl/rename-component-and-main-instance current-component-id new-name))))
|
||||
(when (not (str/blank? new-name))
|
||||
(st/emit!
|
||||
(dwl/rename-component-and-main-instance current-component-id new-name)))))
|
||||
|
||||
on-context-menu
|
||||
(mf/use-fn
|
||||
|
|
Loading…
Add table
Reference in a new issue