fix: resolve TypeScript build errors preventing Coolify deploy
- Fix nullable location in my-jobs search filter (job.location ?? '') - Fix Locale type assertion in jobs/new description language select - Fix nullable location in api.ts transformApiJobToFrontend Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9fd5cf5895
commit
de3f497223
3 changed files with 3 additions and 3 deletions
|
|
@ -111,7 +111,7 @@ export default function MyJobsPage() {
|
||||||
const matchesStatus = statusFilter === "all" || job.status === statusFilter
|
const matchesStatus = statusFilter === "all" || job.status === statusFilter
|
||||||
const matchesSearch =
|
const matchesSearch =
|
||||||
job.title.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
job.title.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
||||||
job.location.toLowerCase().includes(searchTerm.toLowerCase())
|
(job.location ?? '').toLowerCase().includes(searchTerm.toLowerCase())
|
||||||
return matchesStatus && matchesSearch
|
return matchesStatus && matchesSearch
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1147,7 +1147,7 @@ export default function PostJobPage() {
|
||||||
value={job.descriptionLanguage}
|
value={job.descriptionLanguage}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setDescriptionLanguageTouched(true);
|
setDescriptionLanguageTouched(true);
|
||||||
setJob({ ...job, descriptionLanguage: e.target.value });
|
setJob({ ...job, descriptionLanguage: e.target.value as typeof job.descriptionLanguage });
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<option value="">{c.selectPlaceholder}</option>
|
<option value="">{c.selectPlaceholder}</option>
|
||||||
|
|
|
||||||
|
|
@ -612,7 +612,7 @@ export function transformApiJobToFrontend(apiJob: ApiJob): Job {
|
||||||
id: apiJob.id,
|
id: apiJob.id,
|
||||||
title: apiJob.title,
|
title: apiJob.title,
|
||||||
company: apiJob.companyName || "Unknown Company",
|
company: apiJob.companyName || "Unknown Company",
|
||||||
location: apiJob.location,
|
location: apiJob.location ?? '',
|
||||||
type: (apiJob.type as any) || "full-time",
|
type: (apiJob.type as any) || "full-time",
|
||||||
workMode: (apiJob.workMode as any) || "onsite",
|
workMode: (apiJob.workMode as any) || "onsite",
|
||||||
salary: salaryLabel,
|
salary: salaryLabel,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue