Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Commit

Permalink
Use correct default for fetchData
Browse files Browse the repository at this point in the history
`fetchData` was defaulting to a function that returns the `Promise.resolve` function, where it should be defaulting to a function that returns a resolved Promise (`Promise.resolve()`)
  • Loading branch information
eiriklv authored Jul 13, 2016
1 parent 138d402 commit 40d12e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorators/with-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const DataMixin = require('../mixins/data-mixin');
* for adding Aurora data fetching
*/
module.exports = function({
fetchData = (() => Promise.resolve),
fetchData = (() => Promise.resolve()),
dataProp = 'data',
loadingProp = 'isLoading',
disableServerLoading = false,
Expand Down

0 comments on commit 40d12e0

Please sign in to comment.