aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/code/components/Component.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/code/components/Component.js')
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/Component.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/components/Component.js b/server/sonar-web/src/main/js/apps/code/components/Component.js
index 5d55a82684c..1f5ea5fff04 100644
--- a/server/sonar-web/src/main/js/apps/code/components/Component.js
+++ b/server/sonar-web/src/main/js/apps/code/components/Component.js
@@ -42,12 +42,9 @@ export default class Component extends React.PureComponent {
// scroll viewport so the current selected component is visible
if (selected) {
- setTimeout(
- () => {
- this.handleScroll();
- },
- 0
- );
+ setTimeout(() => {
+ this.handleScroll();
+ }, 0);
}
}