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) (#4899)

Issue Resolve
#4888


(cherry picked from commit c886b00)

Signed-off-by: ananzh <ananzh@amazon.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>
  • Loading branch information
1 parent 993ebc0 commit b2b338e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const TopNav = ({ opts }: TopNavProps) => {
showSaveQuery
useDefaultBehaviors
setMenuMountPoint={opts.setHeaderActionMenu}
indexPatterns={indexPatterns}
indexPatterns={indexPattern ? [indexPattern] : indexPatterns}
/>
);
};

0 comments on commit b2b338e

Please sign in to comment.