Skip to content

Commit

Permalink
update breadcrumb only when nav is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 committed Jul 19, 2024
1 parent 0e9378a commit 4b26775
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions public/components/Main/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,18 +303,7 @@ export class Main extends React.Component<MainProps, MainState> {
}

componentDidMount() {
if (coreRefs?.chrome?.navGroup.getNavGroupEnabled()) {
this.props.setBreadcrumbs([
{
text: 'Dev Tools',
href: '#/console',
},
{
text: 'Query Workbench',
href: '#/opensearch-query-workbench',
},
]);
} else {
if (!coreRefs?.chrome?.navGroup.getNavGroupEnabled()) {
this.props.setBreadcrumbs([
{
text: 'Query Workbench',
Expand Down

0 comments on commit 4b26775

Please sign in to comment.