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}] (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)))))