]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22183 Show 'calculation changed' message only when there is no new overall...
authorstanislavh <stanislav.honcharov@sonarsource.com>
Wed, 3 Jul 2024 13:07:40 +0000 (15:07 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 19 Jul 2024 20:03:00 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/component-measures/components/ComponentMeasuresApp.tsx

index 343b6cd4acc97fb1fafbde62981fe40ae96fe096..5e77f0dabde44fae87183593095f30cece0523e1 100644 (file)
@@ -47,7 +47,7 @@ import '../../../components/search-navigator.css';
 import AnalysisMissingInfoMessage from '../../../components/shared/AnalysisMissingInfoMessage';
 import { isSameBranchLike } from '../../../helpers/branch-like';
 import { translate } from '../../../helpers/l10n';
-import { areLeakAndOverallCCTMeasuresComputed } from '../../../helpers/measures';
+import { areCCTMeasuresComputed } from '../../../helpers/measures';
 import { WithBranchLikesProps, useBranchesQuery } from '../../../queries/branch';
 import { MeasurePageView } from '../../../types/measures';
 import { ComponentMeasure, Dict, MeasureEnhanced, Metric, Period } from '../../../types/types';
@@ -311,7 +311,7 @@ class ComponentMeasuresApp extends React.PureComponent<Props, State> {
                     />
                   </FlagMessage>
                 )}
-                {!areLeakAndOverallCCTMeasuresComputed(measures) && (
+                {!areCCTMeasuresComputed(measures) && (
                   <AnalysisMissingInfoMessage className="sw-mb-4" qualifier={qualifier} />
                 )}
                 {this.renderContent(displayOverview, query, metric)}