]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20828 show analysis date for correct branch in portfolio breakdonw
authorJeremy Davis <jeremy.davis@sonarsource.com>
Mon, 30 Oct 2023 14:34:30 +0000 (15:34 +0100)
committersonartech <sonartech@sonarsource.com>
Mon, 30 Oct 2023 20:04:04 +0000 (20:04 +0000)
server/sonar-web/src/main/js/apps/code/components/CodeAppRenderer.tsx
server/sonar-web/src/main/js/apps/code/utils.ts

index 6a573b846ecd81db60efd01f4c34731facd88581..33aac584a0a64f99c7b43a7cc9b29d9603bdc0f9 100644 (file)
@@ -181,7 +181,7 @@ export default function CodeAppRenderer(props: Props) {
       </div>
 
       {(showComponentList || showSearch) && (
-        <Card className="sw-mt-2">
+        <Card className="sw-mt-2 sw-overflow-auto">
           <Spinner loading={loading}>
             {showComponentList && (
               <Components
index e4465315cbe5aa5b3902b17260539469f3629ba7..5309f2004e0a08d6003a2e94ea296cc697010abf 100644 (file)
@@ -188,7 +188,9 @@ export async function retrieveComponentChildren(
   if (instance.mounted && isPortfolioLike(qualifier)) {
     await Promise.all(
       // eslint-disable-next-line local-rules/no-api-imports
-      result.components.map((c) => getComponentData({ component: c.refKey ?? c.key })),
+      result.components.map((c) =>
+        getComponentData({ component: c.refKey ?? c.key, branch: c.branch }),
+      ),
     ).then(
       (data) => {
         data.forEach(({ component: { analysisDate } }, i) => {