From d20b30de5f577d295053218cd10a8fe7acc00687 Mon Sep 17 00:00:00 2001 From: ananzh Date: Thu, 31 Aug 2023 23:02:15 +0000 Subject: [PATCH] [Data Explorer][Discover 2.0] Allow Top Nav to update based on index pattern change Issue Resolve https://github.com/opensearch-project/OpenSearch-Dashboards/issues/4888 Signed-off-by: ananzh --- .../public/application/view_components/canvas/top_nav.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/discover/public/application/view_components/canvas/top_nav.tsx b/src/plugins/discover/public/application/view_components/canvas/top_nav.tsx index a7c7c5ef473d..92e7b955737d 100644 --- a/src/plugins/discover/public/application/view_components/canvas/top_nav.tsx +++ b/src/plugins/discover/public/application/view_components/canvas/top_nav.tsx @@ -90,7 +90,7 @@ export const TopNav = ({ opts }: TopNavProps) => { showSaveQuery useDefaultBehaviors setMenuMountPoint={opts.setHeaderActionMenu} - indexPatterns={indexPatterns} + indexPatterns={indexPattern ? [indexPattern] : indexPatterns} /> ); };