Skip to content

Commit

Permalink
fix(numeric-selector): makes init comply with the new API
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Stanislawski committed Nov 13, 2015
1 parent d8d0434 commit 068e8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/numeric-selector/numeric-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function numericSelector({
}

return {
init: function(state, helper) {
init: function({helper}) {
const currentValue = this._getRefinedValue(helper) || options[0].value;
if (currentValue !== undefined) {
helper.addNumericRefinement(attributeName, operator, currentValue);
Expand Down

0 comments on commit 068e8d3

Please sign in to comment.