Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
Fix: job status undefined issue
Khuram Niaz91d309762d87
diff --git a/src/components/myjobs/AddJob.tsx b/src/components/myjobs/AddJob.tsxindex f6c5220..78573c7 100644--- a/src/components/myjobs/AddJob.tsx+++ b/src/components/myjobs/AddJob.tsx@@ -75,7 +75,7 @@ export function AddJob({defaultValues: {type: Object.keys(JOB_TYPES)[0],dueDate: addDays(new Date(), 3),- status: jobStatuses[0].id,+ status: jobStatuses[0]?.id,salaryRange: "1",},});@@ -113,7 +113,7 @@ export function AddJob({dateApplied: editJob.appliedDate ?? undefined,resume: editJob.Resume?.id ?? undefined,},- { keepDefaultValues: true }+ { keepDefaultValues: true },);setDialogOpen(true);}@@ -163,12 +163,12 @@ export function AddJob({const jobAppliedChange = (applied: boolean) => {if (applied) {- form.getValues("status") === jobStatuses[0].id &&- setValue("status", jobStatuses[1].id);+ form.getValues("status") === jobStatuses[0]?.id &&+ setValue("status", jobStatuses[1]?.id);setValue("dateApplied", new Date());} else {resetField("dateApplied");- setValue("status", jobStatuses[0].id);+ setValue("status", jobStatuses[0]?.id);}};@@ -326,7 +326,11 @@ export function AddJob({render={({ field }) => (<FormItem className="flex flex-col"><FormLabel>Job Source</FormLabel>- <Combobox options={jobSources} field={field} creatable />+ <Combobox+ options={jobSources}+ field={field}+ creatable+ /><FormMessage /></FormItem>)}