aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/component-measures/components/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component-measures/components/App.js')
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/components/App.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/App.js b/server/sonar-web/src/main/js/apps/component-measures/components/App.js
index e5a483dcac8..84bd294f9e9 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/components/App.js
+++ b/server/sonar-web/src/main/js/apps/component-measures/components/App.js
@@ -117,7 +117,11 @@ export default class App extends React.PureComponent {
});
}
},
- () => this.setState({ loading: false })
+ () => {
+ if (this.mounted) {
+ this.setState({ loading: false });
+ }
+ }
);
};