diff --git a/src/components/CurrentRefinedValues/__tests__/CurrentRefinedValues-test.js b/src/components/CurrentRefinedValues/__tests__/CurrentRefinedValues-test.js index a41c38c961..817a2910ce 100644 --- a/src/components/CurrentRefinedValues/__tests__/CurrentRefinedValues-test.js +++ b/src/components/CurrentRefinedValues/__tests__/CurrentRefinedValues-test.js @@ -1,4 +1,5 @@ /* eslint-env mocha */ +/* eslint react/no-multi-comp: 0 */ import React from 'react'; import expect from 'expect'; diff --git a/src/lib/utils.js b/src/lib/utils.js index 10d6063bee..f66367fac2 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -181,6 +181,7 @@ function getRefinements(results, state) { forEach(state.numericRefinements, (operators, attributeName) => { forEach(operators, (values, operator) => { forEach(values, (name) => { + name = name + ''; res.push({type: 'numeric', attributeName, name, operator}); }); }); diff --git a/src/widgets/current-refined-values/__tests__/current-refined-values-test.js b/src/widgets/current-refined-values/__tests__/current-refined-values-test.js index 9b10920c77..9507ec67d3 100644 --- a/src/widgets/current-refined-values/__tests__/current-refined-values-test.js +++ b/src/widgets/current-refined-values/__tests__/current-refined-values-test.js @@ -488,10 +488,10 @@ describe('currentRefinedValues()', () => { {type: 'disjunctive', attributeName: 'disjunctiveFacet', name: 'disjunctiveFacet-val1', count: 3, exhaustive: true}, {type: 'disjunctive', attributeName: 'disjunctiveFacet', name: 'disjunctiveFacet-val2', count: 4, exhaustive: true}, {type: 'hierarchical', attributeName: 'hierarchicalFacet', name: 'hierarchicalFacet-val2', count: 6, exhaustive: true}, - {type: 'numeric', attributeName: 'numericFacet', name: 1, operator: '>='}, - {type: 'numeric', attributeName: 'numericFacet', name: 2, operator: '<='}, - {type: 'numeric', attributeName: 'numericDisjunctiveFacet', name: 3, operator: '>='}, - {type: 'numeric', attributeName: 'numericDisjunctiveFacet', name: 4, operator: '<='}, + {type: 'numeric', attributeName: 'numericFacet', name: '1', operator: '>='}, + {type: 'numeric', attributeName: 'numericFacet', name: '2', operator: '<='}, + {type: 'numeric', attributeName: 'numericDisjunctiveFacet', name: '3', operator: '>='}, + {type: 'numeric', attributeName: 'numericDisjunctiveFacet', name: '4', operator: '<='}, {type: 'tag', attributeName: '_tags', name: 'tag1'}, {type: 'tag', attributeName: '_tags', name: 'tag2'} ];