Skip to content

Commit

Permalink
Quiet react-dnd draggableId/droppableId warnings. (#1147) (#1167)
Browse files Browse the repository at this point in the history
* Quiet react-dnd draggableId/droppableId warnings.
Fix countDistribution access error when countDistribution not available.

---------


(cherry picked from commit ddb697a)

Signed-off-by: Peter Fitzgibbons <peter.fitzgibbons@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent ca1eccd commit c9732d0
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 197 deletions.
4 changes: 2 additions & 2 deletions public/components/event_analytics/explorer/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export const Explorer = ({
{countDistribution?.data && !isLiveTailOnRef.current && (
<>
<HitsCounter
hits={_.sum(countDistribution.data['count()'])}
hits={_.sum(countDistribution.data?.['count()'])}
showResetButton={false}
onResetQuery={() => {}}
/>
Expand Down Expand Up @@ -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]}
Expand Down
Loading

0 comments on commit c9732d0

Please sign in to comment.