mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
🐛 Fix user can set a blank name for the component in assets
This commit is contained in:
parent
6b09ebb75d
commit
3192b55836
@ -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…
x
Reference in New Issue
Block a user