Skip to content

Commit

Permalink
Merge pull request #2348 from abhishek-K-P/sprint-16-dev
Browse files Browse the repository at this point in the history
bug fix for about us
  • Loading branch information
abhishek-K-P authored Jul 25, 2024
2 parents 29ccb7a + b768ba6 commit 672ecb4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class AppTocAboutComponent implements OnInit, OnChanges, AfterViewInit, O
this.loadCompetencies()
}

if (this.content && this.content.contentId.includes('ext_')) {
if (this.content && this.content.contentId && this.content.contentId.includes('ext_')) {
this.loadCompetencies()
}

Expand Down Expand Up @@ -217,7 +217,7 @@ export class AppTocAboutComponent implements OnInit, OnChanges, AfterViewInit, O
if (this.descElem.nativeElement.offsetHeight > 72) {
this.description.ellipsis = true
}
if (this.objectivesElem.nativeElement.offsetHeight > 72) {
if (this.objectivesElem && this.objectivesElem.nativeElement.offsetHeight > 72) {
this.objectives.ellipsis = true
}
} else {
Expand All @@ -228,7 +228,7 @@ export class AppTocAboutComponent implements OnInit, OnChanges, AfterViewInit, O
if (this.descElem.nativeElement.offsetHeight > 48) {
this.description.ellipsis = true
}
if (this.objectivesElem.nativeElement.offsetHeight > 48) {
if (this.objectivesElem && this.objectivesElem.nativeElement.offsetHeight > 48) {
this.objectives.ellipsis = true
}
}
Expand Down

0 comments on commit 672ecb4

Please sign in to comment.