]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11316 fix stale projects list of a quality gate
authorStas Vilchik <vilchiks@gmail.com>
Fri, 5 Oct 2018 08:46:42 +0000 (10:46 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 10 Oct 2018 07:23:01 +0000 (09:23 +0200)
server/sonar-web/src/main/js/apps/quality-gates/components/DetailsContent.tsx

index ae076709354a7086fd020926fee4171164e8fdb7..ea00c28f0ae89f61eb5abf274ebc691c172cb40b 100644 (file)
@@ -66,6 +66,8 @@ export default class DetailsContent extends React.PureComponent<Props> {
           ) : (
             <Projects
               canEdit={actions.associateProjects}
+              // pass unique key to re-mount the component when the quality gate changes
+              key={qualityGate.id}
               organization={organization}
               qualityGate={qualityGate}
             />