diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2019-05-02 17:59:12 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-05-07 20:21:27 +0200 |
commit | e620cd39b96428241cb71a19abf8c80b776e605f (patch) | |
tree | a41bdc81d72a29ee0273d2473ab4d1327e2418cf /server/sonar-web/src/main/js | |
parent | 71bee881032f60e651a724c6264435eed7520e21 (diff) | |
download | sonarqube-e620cd39b96428241cb71a19abf8c80b776e605f.tar.gz sonarqube-e620cd39b96428241cb71a19abf8c80b776e605f.zip |
Avoid calling multiple time api/alm_integration/list_repositories
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/create/project/RemoteRepositories.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/project/RemoteRepositories.tsx b/server/sonar-web/src/main/js/apps/create/project/RemoteRepositories.tsx index e1a6e2736a1..22692ba9f7a 100644 --- a/server/sonar-web/src/main/js/apps/create/project/RemoteRepositories.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/RemoteRepositories.tsx @@ -69,8 +69,7 @@ export default class RemoteRepositories extends React.PureComponent<Props, State } componentDidUpdate(prevProps: Props) { - const { organization } = this.props; - if (prevProps.organization !== organization) { + if (prevProps.organization.key !== this.props.organization.key) { this.setState({ loading: true, selectedRepositories: {} }); this.fetchRepositories(); } |