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

ApexChart: react to facet updates

parent e112c411
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,14 @@ class ApexChart extends React.Component {
if (prevProps.rawDataUpdateID !== this.props.rawDataUpdateID) {
this.renderChart()
}
// check if filters have changed
if (this.props.pageType === 'facetResults' && prevProps.facetUpdateID !== this.props.facetUpdateID) {
this.props.fetchData({
resultClass: this.props.resultClass,
facetClass: this.props.facetClass,
facetID: this.props.facetID
})
}
}
componentWillUnmount () {
......
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