Skip to content

Commit 09fd897

Browse files
authored
feat(HealthcheckPreview): do not show preview for green status (#2687)
1 parent 0c05cc3 commit 09fd897

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export function HealthcheckPreview(props: HealthcheckPreviewProps) {
5959

6060
const issuesText = issuesCount ? i18n('description_problems', {count: issuesCount}) : '';
6161

62+
if (selfCheckResult === 'GOOD' && !issuesCount && !loading) {
63+
return null;
64+
}
65+
6266
const renderAlertMessage = () => {
6367
if (error) {
6468
return <ResponseError error={error} defaultMessage={i18n('description_no-data')} />;

0 commit comments

Comments
 (0)