From 7ae32d6c295b20ea8a82ffc27d4ddfec902bc0ee Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 26 Sep 2023 14:22:02 -0700 Subject: [PATCH] [Data Explorer][Discover] Fix total hits issue (#5087) (#5093) Issue Resolve https://github.com/opensearch-project/OpenSearch-Dashboards/issues/5068 Signed-off-by: ananzh (cherry picked from commit a10f1c7f182aa2edd95ec72994b9868ca4885726) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] Co-authored-by: Josh Romero Co-authored-by: Kawika Avilla --- .../discover/public/application/components/chart/chart.tsx | 4 ++-- .../__snapshots__/doc_viewer_links.test.tsx.snap | 2 ++ .../view_components/canvas/discover_chart_container.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/discover/public/application/components/chart/chart.tsx b/src/plugins/discover/public/application/components/chart/chart.tsx index 8ba188af3dd9..f21ce3e4ef19 100644 --- a/src/plugins/discover/public/application/components/chart/chart.tsx +++ b/src/plugins/discover/public/application/components/chart/chart.tsx @@ -21,8 +21,8 @@ import { useDiscoverContext } from '../../view_components/context'; import { setInterval, useDispatch, useSelector } from '../../utils/state_management'; interface DiscoverChartProps { - bucketInterval: TimechartHeaderBucketInterval; - chartData: Chart; + bucketInterval?: TimechartHeaderBucketInterval; + chartData?: Chart; config: IUiSettingsClient; data: DataPublicPluginStart; hits: number; diff --git a/src/plugins/discover/public/application/components/doc_viewer_links/__snapshots__/doc_viewer_links.test.tsx.snap b/src/plugins/discover/public/application/components/doc_viewer_links/__snapshots__/doc_viewer_links.test.tsx.snap index 075cafd37471..5da67e79a7c7 100644 --- a/src/plugins/discover/public/application/components/doc_viewer_links/__snapshots__/doc_viewer_links.test.tsx.snap +++ b/src/plugins/discover/public/application/components/doc_viewer_links/__snapshots__/doc_viewer_links.test.tsx.snap @@ -17,6 +17,7 @@ exports[`Render with 2 different links 1`] = ` key="0" > with 2 different links 1`] = ` key="1" >