diff --git a/src/app/pages/logged-in/candidate/candidate-invitations/candidate-invitations.page.ts b/src/app/pages/logged-in/candidate/candidate-invitations/candidate-invitations.page.ts index b92aade5..a1e38491 100644 --- a/src/app/pages/logged-in/candidate/candidate-invitations/candidate-invitations.page.ts +++ b/src/app/pages/logged-in/candidate/candidate-invitations/candidate-invitations.page.ts @@ -103,7 +103,7 @@ export class CandidateInvitationsPage implements OnInit { this.loading = false; this.candidate = response; if(this.candidate){ - this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience") + this.candidate.pendingField = (this.candidate?.pendingField || []).filter(v => v != "experience"); this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0; } }); diff --git a/src/app/pages/logged-in/candidate/candidate-notes/candidate-notes.page.ts b/src/app/pages/logged-in/candidate/candidate-notes/candidate-notes.page.ts index 3e1b5fe1..99bd5aaa 100644 --- a/src/app/pages/logged-in/candidate/candidate-notes/candidate-notes.page.ts +++ b/src/app/pages/logged-in/candidate/candidate-notes/candidate-notes.page.ts @@ -85,7 +85,7 @@ export class CandidateNotesPage implements OnInit { this.candidate = response; if(this.candidate){ - this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience") + this.candidate.pendingField = (this.candidate?.pendingField || []).filter(v => v != "experience"); this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0; } }); diff --git a/src/app/pages/logged-in/candidate/candidate-salary-list/candidate-salary-list.page.ts b/src/app/pages/logged-in/candidate/candidate-salary-list/candidate-salary-list.page.ts index bb69e6a7..b3dc2d27 100644 --- a/src/app/pages/logged-in/candidate/candidate-salary-list/candidate-salary-list.page.ts +++ b/src/app/pages/logged-in/candidate/candidate-salary-list/candidate-salary-list.page.ts @@ -56,7 +56,7 @@ export class CandidateSalaryListPage implements OnInit { this.loading = false; this.candidate = response; if(this.candidate){ - this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience") + this.candidate.pendingField = (this.candidate?.pendingField || []).filter(v => v != "experience"); this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0; } diff --git a/src/app/pages/logged-in/candidate/candidate-suggestions/candidate-suggestions.page.ts b/src/app/pages/logged-in/candidate/candidate-suggestions/candidate-suggestions.page.ts index 0741a8a9..35dda6dc 100644 --- a/src/app/pages/logged-in/candidate/candidate-suggestions/candidate-suggestions.page.ts +++ b/src/app/pages/logged-in/candidate/candidate-suggestions/candidate-suggestions.page.ts @@ -85,7 +85,7 @@ export class CandidateSuggestionsPage implements OnInit { this.loading = false; this.candidate = response; if(this.candidate){ - this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience") + this.candidate.pendingField = (this.candidate?.pendingField || []).filter(v => v != "experience"); this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0; } }); diff --git a/src/app/pages/logged-in/candidate/candidate-view/candidate-view.page.ts b/src/app/pages/logged-in/candidate/candidate-view/candidate-view.page.ts index 5dcc242f..74c99fc2 100644 --- a/src/app/pages/logged-in/candidate/candidate-view/candidate-view.page.ts +++ b/src/app/pages/logged-in/candidate/candidate-view/candidate-view.page.ts @@ -645,7 +645,7 @@ export class CandidateViewPage implements OnInit { this.candidate = response; if (this.candidate && this.candidate.pendingField && this.candidate.pendingField.length > 0) { - this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience") + this.candidate.pendingField = (this.candidate?.pendingField || []).filter(v => v != "experience"); this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0; this.pendingData = 'Total ' + this.candidate.pendingField.length + ' pending fields\n ' + this.candidate.pendingField.join(','); diff --git a/src/app/pages/logged-in/candidate/candidate-warning-list/candidate-warning-list.page.ts b/src/app/pages/logged-in/candidate/candidate-warning-list/candidate-warning-list.page.ts index cb6b4d02..78bcc31d 100644 --- a/src/app/pages/logged-in/candidate/candidate-warning-list/candidate-warning-list.page.ts +++ b/src/app/pages/logged-in/candidate/candidate-warning-list/candidate-warning-list.page.ts @@ -95,7 +95,7 @@ export class CandidateWarningsPage implements OnInit { this.loading = false; this.candidate = response; if(this.candidate){ - this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience") + this.candidate.pendingField = (this.candidate?.pendingField || []).filter(v => v != "experience"); this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0; } });