We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f5e91b commit e4a0f61Copy full SHA for e4a0f61
ui/src/ReportStats.tsx
@@ -23,6 +23,8 @@ export class ReportStats extends React.Component<ReportStatsProps> {
23
this.props = props;
24
}
25
26
+ suppressedCount = countReportSuppressed(this.props.report);
27
+
28
render() {
29
const stats = [
30
{
@@ -53,10 +55,12 @@ export class ReportStats extends React.Component<ReportStatsProps> {
53
55
name: 'Licenses',
54
56
value: countReportLicenses(this.props.report),
57
},
- {
- name: 'Suppressed',
58
- value: countReportSuppressed(this.props.report),
59
- },
+ this.suppressedCount > 0
+ ? {
60
+ name: 'Suppressed',
61
+ value: this.suppressedCount,
62
+ }
63
+ : {},
64
];
65
return (
66
<Card className="flex-grow">
0 commit comments