[RAM] render the grid only if we have alerts (#142481)

This commit is contained in:
Julian Gernun 2022-10-05 14:50:08 +02:00 committed by GitHub
parent 25ba3c758f
commit b3ebe13330
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,7 +266,7 @@ const AlertsTable: React.FunctionComponent<AlertsTableProps> = (props: AlertsTab
/>
)}
</Suspense>
{alertsCount >= 0 && (
{alertsCount > 0 && (
<EuiDataGrid
aria-label="Alerts table"
data-test-subj="alertsTable"