From 851c796a9b29654f66c5e1e7bf0905c786036bbc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Loix?= <sebastien.loix@elastic.co>
Date: Mon, 28 Oct 2024 15:50:45 +0000
Subject: [PATCH] [Stateful sidenav] Fix dashboard listing breadcrumbs
 (#197986)

(cherry picked from commit 0405fb7b139c9ef7434e29d878636202a3cd541a)
---
 .../listing_page/dashboard_listing_page.tsx         | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/plugins/dashboard/public/dashboard_app/listing_page/dashboard_listing_page.tsx b/src/plugins/dashboard/public/dashboard_app/listing_page/dashboard_listing_page.tsx
index 034ee2f8e45f4..59b3b3926060a 100644
--- a/src/plugins/dashboard/public/dashboard_app/listing_page/dashboard_listing_page.tsx
+++ b/src/plugins/dashboard/public/dashboard_app/listing_page/dashboard_listing_page.tsx
@@ -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,