From 1a830e6f45eba4fa17645bab8812c559c693a858 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Mon, 26 Sep 2022 14:02:50 +0100 Subject: [PATCH] don't add folder breadcrumb if there is no folderUid (#55739) --- public/app/features/dashboard/containers/DashboardPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard/containers/DashboardPage.tsx b/public/app/features/dashboard/containers/DashboardPage.tsx index 0935e07d25e..da6e4507253 100644 --- a/public/app/features/dashboard/containers/DashboardPage.tsx +++ b/public/app/features/dashboard/containers/DashboardPage.tsx @@ -433,8 +433,8 @@ function updateStatePageNavFromProps(props: Props, state: State): State { } // Check if folder changed - const { folderTitle } = dashboard.meta; - if (folderTitle && pageNav && pageNav.parentItem?.text !== folderTitle) { + const { folderTitle, folderUid } = dashboard.meta; + if (folderTitle && folderUid && pageNav && pageNav.parentItem?.text !== folderTitle) { pageNav = { ...pageNav, parentItem: {