From 042431584937008020de58735ecdbca4f68ae5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 22 Dec 2016 11:10:51 +0100 Subject: [PATCH] Fix first page creation at project creation --- frontend/src/uxbox/main/data/projects.cljs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/src/uxbox/main/data/projects.cljs b/frontend/src/uxbox/main/data/projects.cljs index 1ffbb6aa7..6293014c0 100644 --- a/frontend/src/uxbox/main/data/projects.cljs +++ b/frontend/src/uxbox/main/data/projects.cljs @@ -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)))))