Skip to content

Commit

Permalink
handle recruiter_priority , status being null
Browse files Browse the repository at this point in the history
  • Loading branch information
Snorre98 committed Nov 5, 2024
1 parent b30a8ec commit 1e5f532
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,12 @@ export function RecruitmentGangAllApplicantsAdminPage() {
{ content: <Link url={applicationURL}>{dbT(application.recruitment_position, 'name')}</Link> },
application.interview?.interview_time,
application.interview?.interview_location,
RecruitmentPriorityChoicesMapping[application.recruiter_priority as number],
RecruitmentStatusChoicesMapping[application.recruiter_status as number],
application.recruiter_priority !== undefined
? RecruitmentPriorityChoicesMapping[application.recruiter_priority]
: 'N/A',
application.recruiter_status !== undefined
? RecruitmentStatusChoicesMapping[application.recruiter_status]
: 'N/A',
],
};
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export type RecruitmentApplicationDto = {
recruitment: number;
user: UserDto;
applicant_priority: number;
recruiter_priority?: number | string;
recruiter_priority?: number;
recruiter_status?: number;
applicant_state?: number;
created_at: string;
Expand Down

0 comments on commit 1e5f532

Please sign in to comment.