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#1167)

* 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>
(cherry picked from commit c9732d0)
  • Loading branch information
opensearch-trigger-bot[bot] authored and A9 Swift Project User committed Jan 8, 2024
1 parent f1c8681 commit 15f7a82
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 199 deletions.
4 changes: 2 additions & 2 deletions auto_sync_commit_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"last_github_commit": "ca1eccd70396e0ca4c4f942f8632fe1af96f0b70",
"last_gitfarm_commit": "ef89b5bd564c6d417577d25a4600813c3c1039d6"
"last_github_commit": "c9732d083579777a1a1ba5021458b14f6c4c63f3",
"last_gitfarm_commit": "d6b0a92ec563cfa3901537e46a68e8628f5e2874"
}
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 15f7a82

Please sign in to comment.