aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx14
1 files changed, 10 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx b/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx
index ec40e48c34c..a07808a46ba 100644
--- a/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx
+++ b/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx
@@ -86,9 +86,11 @@ export default class GitHubProjectCreate extends React.Component<Props, State> {
componentDidUpdate(prevProps: Props) {
if (prevProps.almInstances.length === 0 && this.props.almInstances.length > 0) {
- this.setState({ selectedAlmInstance: this.getInitialSelectedAlmInstance() }, () =>
- this.initialize()
- );
+ this.setState({ selectedAlmInstance: this.getInitialSelectedAlmInstance() }, () => {
+ this.initialize().catch(() => {
+ /* noop */
+ });
+ });
}
}
@@ -292,7 +294,11 @@ export default class GitHubProjectCreate extends React.Component<Props, State> {
onSelectedAlmInstanceChange = (instance: AlmSettingsInstance) => {
this.setState(
{ selectedAlmInstance: instance, searchQuery: '', organizations: [], repositories: [] },
- () => this.initialize()
+ () => {
+ this.initialize().catch(() => {
+ /* noop */
+ });
+ }
);
};