Skip to content

Commit

Permalink
fix: token missing
Browse files Browse the repository at this point in the history
  • Loading branch information
adelisle committed Jun 6, 2024
1 parent cf612ca commit 7299109
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/core/public/chrome/ui/header/header_breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@ interface Props {
breadcrumbs$: Observable<ChromeBreadcrumb[]>;
}

export function HeaderBreadcrumbs({ breadcrumbs$ }: Props) {
export function HeaderBreadcrumbs({ breadcrumbs$ }: Readonly<Props>) {
const breadcrumbs = useObservable(breadcrumbs$, []);
let crumbs = breadcrumbs;

if (breadcrumbs.length === 0) {
crumbs = [{ text: 'Kibana' }];
// if (breadcrumbs.length === 0 && appTitle) {
// crumbs = [{ text: appTitle }];
// if (appTitle === 'Kibana') {
// crumbs = [{ text: '' }];
// }
// }
}

crumbs = crumbs.map((breadcrumb, i) => ({
...breadcrumb,
Expand Down

0 comments on commit 7299109

Please sign in to comment.