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

(cherry picked from commit b3ebe13330)

Co-authored-by: Julian Gernun <julian.gernun@elastic.co>
This commit is contained in:
Kibana Machine 2022-10-05 07:57:36 -06:00 committed by GitHub
parent c8344b0d5a
commit bffe2986d8
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"