diff options
author | Kevin Silva <kevin.silva@sonarsource.com> | 2022-11-21 17:07:27 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-11-22 20:03:04 +0000 |
commit | 17c7405ba91e3aca8d4b12ced7d1ee67c8fccbd2 (patch) | |
tree | b4ee368ceccec52c697188a820dbd27371b02f81 | |
parent | 238fc43447f5a92d755af74d47f49a10f8105c9a (diff) | |
download | sonarqube-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.tsx | 5 |
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() { |