We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f3cee4 commit 056153cCopy full SHA for 056153c
widgets/range-slider/range-slider.js
@@ -2,6 +2,7 @@ let React = require('react');
2
let ReactDOM = require('react-dom');
3
4
let utils = require('../../lib/utils.js');
5
+let find = require('lodash/collection/find');
6
let autoHideContainerHOC = require('../../decorators/autoHideContainer');
7
let headerFooterHOC = require('../../decorators/headerFooter');
8
@@ -84,9 +85,7 @@ function rangeSlider({
84
85
helper.search();
86
},
87
render({results, helper, templatesConfig}) {
- let facet = results.disjunctiveFacets.find(
88
- function(f) { return f.name === attributeName; }
89
- );
+ let facet = find(results.disjunctiveFacets, {name: attributeName});
90
let stats = facet.stats;
91
let currentRefinement = this._getCurrentRefinement(helper);
92
0 commit comments