diff --git a/ghost/portal/src/utils/api.js b/ghost/portal/src/utils/api.js index 7bc49ce77e..24b28f1b85 100644 --- a/ghost/portal/src/utils/api.js +++ b/ghost/portal/src/utils/api.js @@ -244,8 +244,10 @@ function setupGhostApi({siteUrl = window.location.origin}) { }; api.init = async () => { - const {site} = await api.site.read(); - const member = await api.member.sessionData(); + const [{site}, member] = await Promise.all([ + api.site.read(), + api.member.sessionData() + ]); return {site, member}; };