aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Silva <kevin.silva@sonarsource.com>2022-11-21 17:07:27 +0100
committersonartech <sonartech@sonarsource.com>2022-11-22 20:03:04 +0000
commit17c7405ba91e3aca8d4b12ced7d1ee67c8fccbd2 (patch)
treeb4ee368ceccec52c697188a820dbd27371b02f81
parent238fc43447f5a92d755af74d47f49a10f8105c9a (diff)
downloadsonarqube-17c7405ba91e3aca8d4b12ced7d1ee67c8fccbd2.tar.gz
sonarqube-17c7405ba91e3aca8d4b12ced7d1ee67c8fccbd2.zip
SONAR-17587 fix github search after changing config
-rw-r--r--server/sonar-web/src/main/js/apps/create/project/GitHubProjectCreate.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/project/GitHubProjectCreate.tsx b/server/sonar-web/src/main/js/apps/create/project/GitHubProjectCreate.tsx
index cefce5099ed..85ec7fafe2c 100644
--- a/server/sonar-web/src/main/js/apps/create/project/GitHubProjectCreate.tsx
+++ b/server/sonar-web/src/main/js/apps/create/project/GitHubProjectCreate.tsx
@@ -285,7 +285,10 @@ export default class GitHubProjectCreate extends React.Component<Props, State> {
};
onSelectedAlmInstanceChange = (instance: AlmSettingsInstance) => {
- this.setState({ selectedAlmInstance: instance }, () => this.initialize());
+ this.setState(
+ { selectedAlmInstance: instance, searchQuery: '', organizations: [], repositories: [] },
+ () => this.initialize()
+ );
};
render() {