File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,12 @@ export class BaoSystemHeaderComponent implements AfterViewInit, OnInit {
124
124
if ( this . textContainerChildren [ 0 ] . className == 'bao-breadcrumb' ) {
125
125
// Retrieve link of parent page
126
126
const breadcrumbElementsList =
127
- this . textContainerChildren [ 0 ] . children [ 0 ] . children [ 0 ] ;
127
+ this . textContainerChildren [ 0 ] . children [ 0 ] ;
128
128
const breadcrumbLength = breadcrumbElementsList . children . length ;
129
129
const parentLink =
130
- breadcrumbElementsList . children [ breadcrumbLength - 2 ] . children [ 0 ]
131
- . attributes [ 'href' ] . value ;
130
+ breadcrumbElementsList . children [ breadcrumbLength - 2 ] . attributes [
131
+ 'href'
132
+ ] . value ;
132
133
// Remove Breadcrumb component and replace it with back button
133
134
this . renderer . removeChild (
134
135
this . textContainer . nativeElement ,
You can’t perform that action at this time.
0 commit comments