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

fetchResults: remove clearTableData param

parent 7ee3b0df
No related branches found
No related tags found
No related merge requests found
......@@ -75,16 +75,14 @@ export const fetchResults = ({
facetClass,
uri = null,
limit = null,
optimize = null,
clearTableData = true
optimize = null
}) => ({
type: FETCH_RESULTS,
resultClass,
facetClass,
uri,
limit,
optimize,
clearTableData
optimize
})
export const fetchInstanceAnalysis = ({
resultClass,
......
......@@ -43,8 +43,7 @@ class ApexChart extends React.Component {
resultClass: this.state.resultClass,
facetClass: this.props.facetClass,
facetID: this.props.facetID,
uri: this.props.uri,
clearTableData: false
uri: this.props.uri
})
}
......@@ -58,16 +57,14 @@ class ApexChart extends React.Component {
this.props.fetchData({
resultClass: this.state.resultClass,
facetClass: this.props.facetClass,
facetID: this.props.facetID,
clearTableData: false
facetID: this.props.facetID
})
}
if (prevState.resultClass !== this.state.resultClass) {
this.props.fetchData({
resultClass: this.state.resultClass,
facetClass: this.props.facetClass,
facetID: this.props.facetID,
clearTableData: false
facetID: this.props.facetID
})
}
if (prevState.chartType !== this.state.chartType) {
......
......@@ -52,8 +52,7 @@ class Network extends React.Component {
facetClass: this.props.facetClass,
uri: this.props.uri,
limit: this.props.limit,
optimize: this.props.optimize,
clearTableData: false
optimize: this.props.optimize
})
this.cy = cytoscape({
......
......@@ -74,8 +74,7 @@ class InstanceHomePageTable extends React.Component {
this.props.fetchResults({
resultClass: this.props.resultClassVariant,
facetClass: this.props.facetClass,
uri: this.props.uri,
clearTableData: false
uri: this.props.uri
})
}
}
......
......@@ -6,8 +6,7 @@ export const fetchResults = (state, action) => {
...state,
instance: null,
instanceTableExternalData: null,
fetching: true,
...(action.clearTableData && { instanceTableData: null })
fetching: true
}
}
......
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