Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/models/candidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class Candidate {
candidateTags: CandidateTag[];
candidateIdCard: CandidateIdCard;
notes: Note[];
pendingField: any[];
pendingField: any[] | null;
certificates: CandidateCertificate[];
candidateStats: any;
candidateLinks: CandidateLink[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export class CandidateInvitationsPage implements OnInit {
this.loading = false;
this.candidate = response;
if(this.candidate){
this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience")
const pendingField = Array.isArray(this.candidate.pendingField) ? this.candidate.pendingField : [];
this.candidate.pendingField = pendingField.filter(v => v != "experience");
this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export class CandidateNotesPage implements OnInit {

this.candidate = response;
if(this.candidate){
this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience")
const pendingField = Array.isArray(this.candidate.pendingField) ? this.candidate.pendingField : [];
this.candidate.pendingField = pendingField.filter(v => v != "experience");
this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export class CandidateSalaryListPage implements OnInit {
this.loading = false;
this.candidate = response;
if(this.candidate){
this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience")
const pendingField = Array.isArray(this.candidate.pendingField) ? this.candidate.pendingField : [];
this.candidate.pendingField = pendingField.filter(v => v != "experience");
this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export class CandidateSuggestionsPage implements OnInit {
this.loading = false;
this.candidate = response;
if(this.candidate){
this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience")
const pendingField = Array.isArray(this.candidate.pendingField) ? this.candidate.pendingField : [];
this.candidate.pendingField = pendingField.filter(v => v != "experience");
this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ export class CandidateWarningsPage implements OnInit {
this.loading = false;
this.candidate = response;
if(this.candidate){
this.candidate.pendingField = this.candidate?.pendingField?.filter(v => v != "experience")
const pendingField = Array.isArray(this.candidate.pendingField) ? this.candidate.pendingField : [];
this.candidate.pendingField = pendingField.filter(v => v != "experience");
this.candidate.isProfileCompleted = this.candidate.pendingField.length == 0;
}
});
Expand Down