diff --git a/common/types/explorer.ts b/common/types/explorer.ts index 5111a030f7..a36dd81a8d 100644 --- a/common/types/explorer.ts +++ b/common/types/explorer.ts @@ -421,9 +421,9 @@ export interface GridSortingColumn { } export enum DirectQueryLoadingStatus { - SUCCESS, - FAILED, - RUNNING, - SCHEDULED, - CANCELED, + SUCCESS = 'SUCCESS', + FAILED = 'FAILED', + RUNNING = 'RUNNING', + SCHEDULED = 'SCHEDULED', + CANCELED = 'CANCELED', } diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 200b82ba8c..73566a35ca 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -552,43 +552,7 @@ export const Explorer = ({ )} - {isDefaultDataSourceType || appLogEvents ? ( - <> - {countDistribution.data && countDistribution.data['count()'] ? ( - - ) : ( - -
- - - - - - - Loading Documents - - -
-
- )} - - ) : ( + {countDistribution.data && countDistribution.data['count()'] ? ( + ) : ( + +
+ + + + + + + Loading Documents + + +
+
)}