AppChromeService: Fixes update to breadcrumb parent URL (#71410)

AppChromeService: Fixes update to parent url
This commit is contained in:
Torkel Ödegaard
2023-07-12 10:34:13 +02:00
committed by GitHub
parent 820e289073
commit dc71d36958

View File

@@ -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;
}
@@ -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)
);
}