Skip to content

Commit

Permalink
updating window title based on breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Jul 17, 2020
1 parent b8b6e5b commit 3f81187
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/observability/public/application/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ const App = () => {
const breadcrumb = [observabilityLabelBreadcrumb, ...route.breadcrumb];
useEffect(() => {
core.chrome.setBreadcrumbs(breadcrumb);
document.title = getTitleFromBreadCrumbs(breadcrumb);
}, [core, breadcrumb]);

document.title = getTitleFromBreadCrumbs(breadcrumb);

const { query, path: pathParams } = useRouteParams(route.params);
return route.handler({ query, path: pathParams });
};
Expand Down

0 comments on commit 3f81187

Please sign in to comment.