Skip to content

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.

Fix: Combobox undefined error

Khuram Niazfdaa9fe72c35
diff --git a/src/components/ComboBox.tsx b/src/components/ComboBox.tsx
index bb2866c..f6e20da 100644
--- a/src/components/ComboBox.tsx
+++ b/src/components/ComboBox.tsx
@@ -85,7 +85,7 @@ export function Combobox({ options, field, creatable }: ComboboxProps) {
)}
>
{field.value
- ? options.find((option) => option.id === field.value).label
+ ? options.find((option) => option.id === field.value)?.label
: `Select ${field.name}`}
{isPending ? (