From 7ee3b0df5ebe578a3f454e068649a1ee4551efbe Mon Sep 17 00:00:00 2001 From: esikkala <esko.ikkala@aalto.fi> Date: Wed, 24 Feb 2021 11:36:34 +0200 Subject: [PATCH] Update clearTableData --- src/client/components/facet_results/ApexChart.js | 9 ++++++--- .../components/main_layout/InstanceHomePageTable.js | 3 ++- src/client/reducers/general/helpers.js | 1 - 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/client/components/facet_results/ApexChart.js b/src/client/components/facet_results/ApexChart.js index 4e988401..32b24c5a 100644 --- a/src/client/components/facet_results/ApexChart.js +++ b/src/client/components/facet_results/ApexChart.js @@ -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) { diff --git a/src/client/components/main_layout/InstanceHomePageTable.js b/src/client/components/main_layout/InstanceHomePageTable.js index cee3e39f..2f6066f4 100644 --- a/src/client/components/main_layout/InstanceHomePageTable.js +++ b/src/client/components/main_layout/InstanceHomePageTable.js @@ -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 }) } } diff --git a/src/client/reducers/general/helpers.js b/src/client/reducers/general/helpers.js index 6a54b990..424c45eb 100644 --- a/src/client/reducers/general/helpers.js +++ b/src/client/reducers/general/helpers.js @@ -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, -- GitLab