Skip to content

Commit

Permalink
AppChromeService: Fixes update to breadcrumb parent URL (#71410)
Browse files Browse the repository at this point in the history
AppChromeService: Fixes update to parent url
  • Loading branch information
torkelo committed Jul 12, 2023
1 parent 820e289 commit dc71d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/app/core/components/AppChrome/AppChromeService.tsx
Expand Up @@ -167,7 +167,7 @@ export class AppChromeService {
/**
* Checks if text, url, active child url and parent are the same
**/
function navItemsAreTheSame(a: NavModelItem | undefined, b: NavModelItem | undefined) {
function navItemsAreTheSame(a: NavModelItem | undefined, b: NavModelItem | undefined): boolean {
if (a === b) {
return true;
}
Expand All @@ -179,6 +179,6 @@ function navItemsAreTheSame(a: NavModelItem | undefined, b: NavModelItem | undef
a?.text === b?.text &&
a?.url === b?.url &&
aActiveChild?.url === bActiveChild?.url &&
a?.parentItem === b?.parentItem
navItemsAreTheSame(a?.parentItem, b?.parentItem)
);
}

0 comments on commit dc71d36

Please sign in to comment.