Skip to content

Commit

Permalink
[Data Explorer][Discover 2.0] Allow Top Nav to update based on index …
Browse files Browse the repository at this point in the history
…pattern change (#4889)

Issue Resolve
#4888

Signed-off-by: ananzh <ananzh@amazon.com>
  • Loading branch information
ananzh authored Sep 1, 2023
1 parent abcef34 commit c886b00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const TopNav = ({ opts }: TopNavProps) => {
showSaveQuery
useDefaultBehaviors
setMenuMountPoint={opts.setHeaderActionMenu}
indexPatterns={indexPatterns}
indexPatterns={indexPattern ? [indexPattern] : indexPatterns}
/>
);
};

0 comments on commit c886b00

Please sign in to comment.