mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
Fix first page creation at project creation
This commit is contained in:
parent
6783463ae7
commit
0424315849
@ -162,12 +162,11 @@
|
|||||||
(letfn [(on-success [{project :payload}]
|
(letfn [(on-success [{project :payload}]
|
||||||
(rx/of
|
(rx/of
|
||||||
(project-persisted project)
|
(project-persisted project)
|
||||||
(udp/create-page {:metadata {:width width
|
(udp/create-page {:width width
|
||||||
:height height
|
:height height
|
||||||
:layout layout}
|
:layout layout
|
||||||
:project (:id project)
|
:project (:id project)
|
||||||
:name "Page 1"
|
:name "Page 1" })))]
|
||||||
:data nil})))]
|
|
||||||
(->> (rp/req :create/project {:name name})
|
(->> (rp/req :create/project {:name name})
|
||||||
(rx/mapcat on-success)))))
|
(rx/mapcat on-success)))))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user