Skip to content

Commit

Permalink
fix(system-header): adjust to previous breadcrumb structure
Browse files Browse the repository at this point in the history
Signed-off-by: Maude Laflamme <[email protected]>
  • Loading branch information
MaudeLaflamme committed Jun 7, 2023
1 parent 2b6e423 commit 168c5fd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ export class BaoSystemHeaderComponent implements AfterViewInit, OnInit {
if (this.textContainerChildren[0].className == 'bao-breadcrumb') {
// Retrieve link of parent page
const breadcrumbElementsList =
this.textContainerChildren[0].children[0].children[0];
this.textContainerChildren[0].children[0];
const breadcrumbLength = breadcrumbElementsList.children.length;
const parentLink =
breadcrumbElementsList.children[breadcrumbLength - 2].children[0]
.attributes['href'].value;
breadcrumbElementsList.children[breadcrumbLength - 2].attributes[
'href'
].value;
// Remove Breadcrumb component and replace it with back button
this.renderer.removeChild(
this.textContainer.nativeElement,
Expand Down

0 comments on commit 168c5fd

Please sign in to comment.