0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 23:31:21 -05:00

🐛 Fix forbid empty flow names

This commit is contained in:
alonso.torres 2024-03-07 12:41:39 +01:00
parent b9b85b5ada
commit 747cead313

View file

@ -86,7 +86,7 @@
accept-edit (fn []
(let [name-input (mf/ref-val name-ref)
name (dom/get-value name-input)]
name (str/trim (dom/get-value name-input))]
(reset! editing? false)
(st/emit! (dwi/end-rename-flow)
(when-not (str/empty? name)