Skip to content

Commit

Permalink
Use Promise.resolve in the events no queries are found
Browse files Browse the repository at this point in the history
  • Loading branch information
nylin93 committed Jul 15, 2017
1 parent 6b777fc commit 1361ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function getLoadableState(
const queries = getQueriesFromTree({ rootElement, rootContext }, fetchRoot)

// no queries found, nothing to do
if (!queries.length) return new DeferredState([])
if (!queries.length) return Promise.resolve(new DeferredState([]))

const errors = []
let componentIds = []
Expand Down

0 comments on commit 1361ff7

Please sign in to comment.