0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Remove "p" in new project and file names

This commit is contained in:
Andrés Moya 2020-07-20 13:37:49 +02:00
parent c6c5cc4e14
commit 87fc2db78a

View file

@ -246,7 +246,7 @@
(ptk/reify ::create-project
ptk/WatchEvent
(watch [_ state stream]
(let [name (str "New Project " (gensym "p"))
(let [name (str "New Project " (gensym ""))
team-id (get-in state [:dashboard-local :team-id])]
(->> (rp/mutation! :create-project {:name name :team-id team-id})
(rx/map project-created))))))
@ -348,7 +348,7 @@
(ptk/reify ::create-file
ptk/WatchEvent
(watch [_ state stream]
(let [name (str "New File " (gensym "p"))
(let [name (str "New File " (gensym ""))
params {:name name :project-id project-id}]
(->> (rp/mutation! :create-file params)
(rx/map file-created))))))