From 4b267759cb7cd2f037a2bbbb70147748c048b4db Mon Sep 17 00:00:00 2001 From: Shenoy Pratik Date: Fri, 19 Jul 2024 06:23:51 -0700 Subject: [PATCH] update breadcrumb only when nav is enabled Signed-off-by: Shenoy Pratik --- public/components/Main/main.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/public/components/Main/main.tsx b/public/components/Main/main.tsx index 8a24b4c..d64bcbc 100644 --- a/public/components/Main/main.tsx +++ b/public/components/Main/main.tsx @@ -303,18 +303,7 @@ export class Main extends React.Component { } 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',