]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22728 Cache portfolio list measure and show awaiting analysis pill
authorIsmail Cherri <ismail.cherri@sonarsource.com>
Thu, 15 Aug 2024 15:01:00 +0000 (18:01 +0300)
committersonartech <sonartech@sonarsource.com>
Mon, 26 Aug 2024 20:03:07 +0000 (20:03 +0000)
server/sonar-web/src/main/js/queries/measures.ts

index 68cc602ea8921281e068b0276c1e40efaa062c53..4ff54ba6a4fc56682295d2d131fb0aefdc097929 100644 (file)
@@ -311,7 +311,7 @@ export const useMeasuresQuery = createQueryHook(
         metricKeys.split(',').forEach((metricKey) => {
           const measure = measuresMapByMetricKey[metricKey]?.[0] ?? null;
           queryClient.setQueryData<Measure>(
-            ['measures', 'details', componentKey, 'branchLike', branchLike, metricKey],
+            ['measures', 'details', componentKey, 'branchLike', branchLike ?? {}, metricKey],
             measure,
           );
         });