Skip to content

Commit

Permalink
[8.16] [Stateful sidenav] Fix dashboard listing breadcrumbs (#197986) (
Browse files Browse the repository at this point in the history
…#198039)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Stateful sidenav] Fix dashboard listing breadcrumbs
(#197986)](#197986)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Sébastien
Loix","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-28T15:50:45Z","message":"[Stateful
sidenav] Fix dashboard listing breadcrumbs
(#197986)","sha":"0405fb7b139c9ef7434e29d878636202a3cd541a","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-major","Feature:Chrome"],"title":"[Stateful
sidenav] Fix dashboard listing
breadcrumbs","number":197986,"url":"https://github.com/elastic/kibana/pull/197986","mergeCommit":{"message":"[Stateful
sidenav] Fix dashboard listing breadcrumbs
(#197986)","sha":"0405fb7b139c9ef7434e29d878636202a3cd541a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197986","number":197986,"mergeCommit":{"message":"[Stateful
sidenav] Fix dashboard listing breadcrumbs
(#197986)","sha":"0405fb7b139c9ef7434e29d878636202a3cd541a"}}]}]
BACKPORT-->

Co-authored-by: Sébastien Loix <[email protected]>
  • Loading branch information
kibanamachine and sebelga authored Oct 28, 2024
1 parent 9bdaef8 commit 9702676
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,16 @@ export const DashboardListingPage = ({
}, []);

useEffect(() => {
coreServices.chrome.setBreadcrumbs([
coreServices.chrome.setBreadcrumbs(
[
{
text: getDashboardBreadcrumb(),
},
],
{
text: getDashboardBreadcrumb(),
},
]);
project: { value: [] },
}
);

if (serverlessService) {
// if serverless breadcrumbs available,
Expand Down

0 comments on commit 9702676

Please sign in to comment.