0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

More fixes on initial data loading.

This commit is contained in:
Andrey Antukh 2016-04-01 16:55:34 +03:00
parent 38a64c356b
commit f32b384f5d
2 changed files with 5 additions and 2 deletions

View file

@ -15,6 +15,7 @@
[uxbox.state :as st]
[uxbox.schema :as sc]
[uxbox.locales :refer (tr)]
[uxbox.data.projects :as dp]
[uxbox.ui.messages :as uum]))
;; --- Profile Fetched
@ -83,6 +84,7 @@
(rx/catch on-error)
(rx/map :payload)
(rx/mapcat #(rx/of (logged-in %)
(dp/fetch-projects)
(fetch-profile))))))))

View file

@ -59,8 +59,9 @@
(defn app-will-mount
[own]
(rs/emit! (uda/fetch-profile)
(dp/fetch-projects))
(when @auth-data
(rs/emit! (uda/fetch-profile)
(dp/fetch-projects)))
own)
(def app