diff --git a/src/components/Item/VisualizationItem/Item.js b/src/components/Item/VisualizationItem/Item.js index f17f235bf..028cdb5cc 100644 --- a/src/components/Item/VisualizationItem/Item.js +++ b/src/components/Item/VisualizationItem/Item.js @@ -88,15 +88,15 @@ class Item extends Component { } async componentDidMount() { - // Avoid refetching the visualization already in the Redux store - // when the same dashboard item is added again. - // This also solves a flashing of all the "duplicated" dashboard items. - !this.props.visualization.id && - this.props.setVisualization( - await apiFetchVisualization(this.props.item) - ) - try { + // Avoid refetching the visualization already in the Redux store + // when the same dashboard item is added again. + // This also solves a flashing of all the "duplicated" dashboard items. + !this.props.visualization.id && + this.props.setVisualization( + await apiFetchVisualization(this.props.item) + ) + if ( this.props.settings .keyGatherAnalyticalObjectStatisticsInDashboardViews &&