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

Update clearTableData

parent bba9394f
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,8 @@ class ApexChart extends React.Component {
resultClass: this.state.resultClass,
facetClass: this.props.facetClass,
facetID: this.props.facetID,
uri: this.props.uri
uri: this.props.uri,
clearTableData: false
})
}
......@@ -57,14 +58,16 @@ class ApexChart extends React.Component {
this.props.fetchData({
resultClass: this.state.resultClass,
facetClass: this.props.facetClass,
facetID: this.props.facetID
facetID: this.props.facetID,
clearTableData: false
})
}
if (prevState.resultClass !== this.state.resultClass) {
this.props.fetchData({
resultClass: this.state.resultClass,
facetClass: this.props.facetClass,
facetID: this.props.facetID
facetID: this.props.facetID,
clearTableData: false
})
}
if (prevState.chartType !== this.state.chartType) {
......
......@@ -74,7 +74,8 @@ class InstanceHomePageTable extends React.Component {
this.props.fetchResults({
resultClass: this.props.resultClassVariant,
facetClass: this.props.facetClass,
uri: this.props.uri
uri: this.props.uri,
clearTableData: false
})
}
}
......
......@@ -2,7 +2,6 @@ import { has, isEmpty } from 'lodash'
import { UPDATE_FACET_VALUES_CONSTRAIN_SELF } from '../../actions'
export const fetchResults = (state, action) => {
console.log(action)
return {
...state,
instance: null,
......
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