]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15802 Improve portfolio's children ordering
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Wed, 22 Dec 2021 14:52:23 +0000 (15:52 +0100)
committersonartech <sonartech@sonarsource.com>
Mon, 27 Dec 2021 20:02:47 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/code/components/Components.tsx

index 7568a1ef14b403b02f5490a7939ad9b1ba60c6c6..2d803f21dafef95752b639669647ff70f8e3cf1f 100644 (file)
@@ -82,7 +82,7 @@ export class Components extends React.PureComponent<Props> {
               components,
               c => c.qualifier,
               c => c.name.toLowerCase(),
-              c => c.branch?.toLowerCase()
+              c => (c.branch ? c.branch.toLowerCase() : '')
             ).map((component, index, list) => (
               <Component
                 branchLike={branchLike}