Fix first page creation at project creation

This commit is contained in:
Jesús Espino 2016-12-22 11:10:51 +01:00
parent 6783463ae7
commit 0424315849

View file

@ -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)))))