Skip to content

Commit

Permalink
fixed when data grix shows
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Sebastian <[email protected]>
  • Loading branch information
paulstn committed Oct 23, 2023
1 parent 0715996 commit 0b1964a
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions public/components/event_analytics/explorer/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ export const Explorer = ({
<EuiSpacer size="m" />
</>
)}
{countDistribution.data && countDistribution.data['count()'] ? (
{((countDistribution.data && countDistribution.data['count()']) ||
!(isDefaultDataSourceType || appLogEvents)) && (
<DataGrid
http={http}
pplService={pplService}
Expand All @@ -570,20 +571,6 @@ export const Explorer = ({
startTime={appLogEvents ? startTime : dateRange[0]}
endTime={appLogEvents ? endTime : dateRange[1]}
/>
) : (
<EuiPanel paddingSize="s">
<div style={{ padding: '20px' }}>
<EuiFlexGroup direction="column" alignItems="center" gutterSize="none">
<EuiFlexItem>
<EuiLoadingSpinner size="xl" />
</EuiFlexItem>
<EuiSpacer size="s" />
<EuiFlexItem>
<strong>Loading Documents</strong>
</EuiFlexItem>
</EuiFlexGroup>
</div>
</EuiPanel>
)}
<a tabIndex={0} id="discoverBottomMarker">
&#8203;
Expand Down

0 comments on commit 0b1964a

Please sign in to comment.