Skip to content
Snippets Groups Projects
Commit c566202f authored by esikkala's avatar esikkala
Browse files

Slider: convert domain values to int

parent 2a3d538c
No related branches found
No related tags found
No related merge requests found
......@@ -102,9 +102,9 @@ class SliderFacet extends Component {
const maxYear = this.ISOStringToYear(max);
domain = [ minYear, maxYear ]; // use as default values
} else if (this.props.dataType === 'integer') {
domain = [ min, max ];
// domain = [ 0, 10000 ];
domain = [ parseInt(min), parseInt(max) ];
}
// Slider documentation: https://github.com/sghall/react-compound-slider
return (
<div className={classes.root}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment