aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.js')
-rw-r--r--server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.js b/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.js
index 7ae51334755..a402d0bdb58 100644
--- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.js
+++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.js
@@ -37,10 +37,7 @@ export default class OnboardingModal extends React.PureComponent {
componentDidMount() {
this.mounted = true;
- // $FlowFixMe
- require.ensure([], require => {
- this.receiveComponent(require('./OnboardingContainer').default);
- });
+ import('./OnboardingContainer').then(i => this.receiveComponent(i.default));
}
componentWillUnmount() {