Skip to content

Commit

Permalink
chore(dev): fix dev app popularity selector
Browse files Browse the repository at this point in the history
Was not working with `undefined` (linked with #665)

Did not have the right operator nor the right values for the dataset
  • Loading branch information
vvo committed Dec 3, 2015
1 parent 3d88d2f commit 3c71656
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dev/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,13 @@ search.addWidget(
search.addWidget(
instantsearch.widgets.numericSelector({
container: '#popularity-selector',
operator: '>=',
attributeName: 'popularity',
options: [
{ label: 'Select a value', value: undefined },
{ label: '1st', value: 1 },
{ label: '2nd', value: 2 },
{ label: '3rd', value: 3 }
{ label: 'Default', value: 0 },
{ label: 'Top 10', value: 9991 },
{ label: 'Top 100', value: 9901 },
{ label: 'Top 500', value: 9501 }
]
})
);
Expand Down

0 comments on commit 3c71656

Please sign in to comment.