Skip to content

Commit

Permalink
Quiet react-dnd draggableId/droppableId warnings. (opensearch-project…
Browse files Browse the repository at this point in the history
…#1147) (opensearch-project#1166)

* Quiet react-dnd draggableId/droppableId warnings.
Fix countDistribution access error when countDistribution not available.

---------


(cherry picked from commit ddb697a)

Signed-off-by: Peter Fitzgibbons <[email protected]>
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 9de9aea commit a2f9a00
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 a2f9a00

Please sign in to comment.