diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 0f60b71c51..5053c38ebb 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -496,7 +496,7 @@ export const Explorer = ({ {countDistribution?.data && !isLiveTailOnRef.current && ( <> {}} /> @@ -577,7 +577,7 @@ export const Explorer = ({ explorerFields={explorerFields} timeStampField={queryRef.current![SELECTED_TIMESTAMP]} rawQuery={appBasedRef.current || queryRef.current![RAW_QUERY]} - totalHits={_.sum(countDistribution.data['count()'])} + totalHits={_.sum(countDistribution.data?.['count()'])} requestParams={requestParams} startTime={appLogEvents ? startTime : dateRange[0]} endTime={appLogEvents ? endTime : dateRange[1]} diff --git a/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap b/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap index fae58502a7..afc799306d 100644 --- a/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap +++ b/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap @@ -1048,21 +1048,21 @@ exports[`Siderbar component Renders sidebar component 1`] = `
{ data-attr-field={field.name} className="dscSidebar__item sidebar_content" index={index} - draggableId={field.name} + draggableId={`queriedField-${field.name}`} > { className="dscSidebarList explorerFieldList--selected" aria-labelledby="selected_fields" data-test-subj={`fieldList-selected`} - droppableId="" + droppableId="selectedFields-drop" spacing="m" > {explorerData && @@ -243,7 +243,7 @@ export const Sidebar = (props: ISidebarProps) => { data-attr-field={field.name} className="dscSidebar__item sidebar_content" index={index} - draggableId="" + draggableId={`selectedField-${field.name}`} > { }`} aria-labelledby="available_fields" data-test-subj={`fieldList-unpopular`} - droppableId="" + droppableId="unpopularFields-drop" spacing="m" > {storedExplorerFields?.availableFields && @@ -298,7 +298,7 @@ export const Sidebar = (props: ISidebarProps) => { data-attr-field={field.name} className="dscSidebar__item sidebar_content" index={index} - draggableId="" + draggableId={`availableField-field${field.name}`} >