mirror of
https://github.com/penpot/penpot.git
synced 2025-03-15 17:21:17 -05:00
🐛 Fix in dashboard it is possible to update project with empty name on left sidebar
This commit is contained in:
parent
42b68a786e
commit
b2ad78d947
1 changed files with 4 additions and 2 deletions
|
@ -34,6 +34,7 @@
|
|||
[app.util.timers :as ts]
|
||||
[beicon.v2.core :as rx]
|
||||
[cljs.spec.alpha :as s]
|
||||
[cuerdas.core :as str]
|
||||
[goog.functions :as f]
|
||||
[potok.v2.core :as ptk]
|
||||
[rumext.v2 :as mf]))
|
||||
|
@ -91,8 +92,9 @@
|
|||
(mf/use-callback
|
||||
(mf/deps item)
|
||||
(fn [name]
|
||||
(st/emit! (-> (dd/rename-project (assoc item :name name))
|
||||
(with-meta {::ev/origin "dashboard:sidebar"})))
|
||||
(when-not (str/blank? name)
|
||||
(st/emit! (-> (dd/rename-project (assoc item :name name))
|
||||
(with-meta {::ev/origin "dashboard:sidebar"}))))
|
||||
(swap! local* assoc :edition? false)))
|
||||
|
||||
on-drag-enter
|
||||
|
|
Loading…
Add table
Reference in a new issue