mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 17:00:36 -05:00
Fix first page creation at project creation
This commit is contained in:
parent
6783463ae7
commit
0424315849
1 changed files with 4 additions and 5 deletions
|
@ -162,12 +162,11 @@
|
|||
(letfn [(on-success [{project :payload}]
|
||||
(rx/of
|
||||
(project-persisted project)
|
||||
(udp/create-page {:metadata {:width width
|
||||
:height height
|
||||
:layout layout}
|
||||
(udp/create-page {:width width
|
||||
:height height
|
||||
:layout layout
|
||||
:project (:id project)
|
||||
:name "Page 1"
|
||||
:data nil})))]
|
||||
:name "Page 1" })))]
|
||||
(->> (rp/req :create/project {:name name})
|
||||
(rx/mapcat on-success)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue