From ffbd310640573cf80220431c9ef1089c425cb55d Mon Sep 17 00:00:00 2001 From: Paul Sebastian Date: Mon, 23 Oct 2023 12:48:30 -0700 Subject: [PATCH] use datasource variable Signed-off-by: Paul Sebastian --- public/components/event_analytics/explorer/explorer.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index a7bb89198..200b82ba8 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -552,8 +552,7 @@ export const Explorer = ({ )} - {explorerSearchMeta.datasources?.[0]?.type === 'DEFAULT_INDEX_PATTERNS' || - appLogEvents ? ( + {isDefaultDataSourceType || appLogEvents ? ( <> {countDistribution.data && countDistribution.data['count()'] ? (