Skip to content
Snippets Groups Projects
Unverified Commit 6d146ab8 authored by Uladzimir Havenchyk's avatar Uladzimir Havenchyk Committed by GitHub
Browse files

Do not update Pie chart state unnecessary (#40840)

parent 8a9a0a16
Branches
Tags
No related merge requests found
......@@ -283,7 +283,9 @@ export default class PieChart extends Component {
groupElement.getBoundingClientRect().width >= 120 &&
settings["pie.show_total"];
this.setState({ showChartDetail });
if (showChartDetail !== this.state.showChartDetail) {
this.setState({ showChartDetail });
}
});
if (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment