Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af1910f

Browse files
committed
1 parent 51f0e6f commit af1910f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state/fetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import _ from 'lodash';
77
*/
88
export function fetchData(store, props) {
99
return Promise.all(props.components
10-
.filter(component => _.isFunction(component.fetchData))
10+
.filter(component => component && _.isFunction(component.fetchData))
1111
.map(component => component.fetchData({
1212
store,
1313
location: props.location,

0 commit comments

Comments
 (0)