Skip to content

Commit 168c5fd

Browse files
committed
fix(system-header): adjust to previous breadcrumb structure
Signed-off-by: Maude Laflamme <[email protected]>
1 parent 2b6e423 commit 168c5fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

projects/angular-ui/src/lib/system-header/system-header.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@ export class BaoSystemHeaderComponent implements AfterViewInit, OnInit {
124124
if (this.textContainerChildren[0].className == 'bao-breadcrumb') {
125125
// Retrieve link of parent page
126126
const breadcrumbElementsList =
127-
this.textContainerChildren[0].children[0].children[0];
127+
this.textContainerChildren[0].children[0];
128128
const breadcrumbLength = breadcrumbElementsList.children.length;
129129
const parentLink =
130-
breadcrumbElementsList.children[breadcrumbLength - 2].children[0]
131-
.attributes['href'].value;
130+
breadcrumbElementsList.children[breadcrumbLength - 2].attributes[
131+
'href'
132+
].value;
132133
// Remove Breadcrumb component and replace it with back button
133134
this.renderer.removeChild(
134135
this.textContainer.nativeElement,

0 commit comments

Comments
 (0)