Skip to content

Commit

Permalink
Merge pull request #31 from nsmith7989/undefined-range-value-fix
Browse files Browse the repository at this point in the history
Undefined range value fix
  • Loading branch information
nsmith7989 authored Jul 20, 2016
2 parents 72c5e7a + a31e003 commit 2705713
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/helpers/buildOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ export function uniqueRanges(configValue, items, sortFn = null) {
return within(min, max, currentValue);
});

// if we did not find a range that matches, bail
if (!foundRange) {
return prev;
}

const {min, max} = foundRange.range;
// build range fn
filterFns = {
Expand Down

0 comments on commit 2705713

Please sign in to comment.