Skip to content

Commit

Permalink
feat(connector): fix parameter consistency in connectClearAll
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Stanislawski committed Mar 22, 2017
1 parent ddf869f commit 9ddffd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connectors/clear-all/connectClearAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ const connectClearAll = renderClearAll => ({
.map(one => one.attributeName)
.filter(one => excludeAttributes.indexOf(one) === -1);
const hasRefinements = clearAttributes.length !== 0;
const preparedCreateURL = () => createURL(clearRefinementsFromState(helper.state));

renderClearAll({
clearAll: () => {},
hasRefinements,
url: createURL(clearRefinementsFromState(helper.state)),
createURL: preparedCreateURL,
instantSearchInstance,
}, true);
},
Expand Down

0 comments on commit 9ddffd8

Please sign in to comment.