diff --git a/src/components/book-out/BookOutForm.tsx b/src/components/book-out/BookOutForm.tsx index a064d44..ba3feaf 100644 --- a/src/components/book-out/BookOutForm.tsx +++ b/src/components/book-out/BookOutForm.tsx @@ -55,7 +55,7 @@ type StockItem = { // Define the type for a customer type Customer = { id: string - name: string + name: string // This will be the label in the combobox } export function BookOutForm({ setOpen, refreshData }: BookOutFormProps) { @@ -90,7 +90,7 @@ export function BookOutForm({ setOpen, refreshData }: BookOutFormProps) { }); const formattedCustomers: Customer[] = records.items.map((item: any) => ({ id: item.id, - name: item.company_name, // Assuming 'company_name' is the field for customer name + name: item.company_name, // Assuming 'company_name' is the field for customer name in PocketBase })); setCustomers(formattedCustomers); } catch (error) {