Skip to content

Commit

Permalink
feat(connector): fix no param usage on custom infiniteHits
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Stanislawski committed Mar 24, 2017
1 parent 107031a commit 961348a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connectors/infinite-hits/connectInfiniteHits.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function connectInfiniteHits(renderFn) {
checkRendering(renderFn, usage);

return widgetParams => {
const {hitsPerPage = 20} = widgetParams;
const {hitsPerPage = 20} = widgetParams || {};
let hitsCache = [];
const getShowMore = helper => () => helper.nextPage().search();

Expand Down

0 comments on commit 961348a

Please sign in to comment.