Skip to content

Commit

Permalink
fix: toggleRefine was no more working
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Sep 8, 2015
1 parent b44943a commit e6e35df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widgets/refinement-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ function refinementList({
itemClass={cx(itemClass)}
facetValues={results.getFacetValues(facetName, {sortBy: sortBy}).slice(0, limit)}
template={template}
toggleRefine={toggleRefine.bind(null, helper, singleRefine, facetName)}
toggleRefinement={toggleRefinement.bind(null, helper, singleRefine, facetName)}
/>,
containerNode
);
}
};
}

function toggleRefine(helper, singleRefine, facetName, facetValue) {
function toggleRefinement(helper, singleRefine, facetName, facetValue) {
if (singleRefine) {
helper.clearRefinement(facetName);
}
Expand Down

0 comments on commit e6e35df

Please sign in to comment.