diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/create/project/Gitlab/GitlabProjectCreate.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/create/project/Gitlab/GitlabProjectCreate.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/project/Gitlab/GitlabProjectCreate.tsx b/server/sonar-web/src/main/js/apps/create/project/Gitlab/GitlabProjectCreate.tsx index 45b7aa4e8d7..cfa49099e20 100644 --- a/server/sonar-web/src/main/js/apps/create/project/Gitlab/GitlabProjectCreate.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/Gitlab/GitlabProjectCreate.tsx @@ -74,7 +74,11 @@ export default class GitlabProjectCreate extends React.PureComponent<Props, Stat componentDidUpdate(prevProps: Props) { const { almInstances } = this.props; if (prevProps.almInstances.length === 0 && this.props.almInstances.length > 0) { - this.setState({ selectedAlmInstance: almInstances[0] }, () => this.fetchInitialData()); + this.setState({ selectedAlmInstance: almInstances[0] }, () => { + this.fetchInitialData().catch(() => { + /* noop */ + }); + }); } } |