]> source.dussan.org Git - sonarqube.git/commitdiff
Avoid calling multiple time api/alm_integration/list_repositories
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Thu, 2 May 2019 15:59:12 +0000 (17:59 +0200)
committerSonarTech <sonartech@sonarsource.com>
Tue, 7 May 2019 18:21:27 +0000 (20:21 +0200)
server/sonar-web/src/main/js/apps/create/project/RemoteRepositories.tsx

index e1a6e2736a1dfa436a2bf9f15dd8e7f26a733bfa..22692ba9f7a9e52d4552353c05994d4c6be20dc0 100644 (file)
@@ -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();
     }