From b86d694e29e7f08b708a4cde7ed3daad658a15c0 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Fri, 12 Sep 2025 16:17:45 +0200 Subject: [PATCH] [dyad] Corrected customer name mapping in BookOutForm - wrote 1 file(s) --- src/components/book-out/BookOutForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/book-out/BookOutForm.tsx b/src/components/book-out/BookOutForm.tsx index ba3feaf..1f348b6 100644 --- a/src/components/book-out/BookOutForm.tsx +++ b/src/components/book-out/BookOutForm.tsx @@ -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 in PocketBase + name: item.comapny_name, // Corrected to use 'comapny_name' from PocketBase schema })); setCustomers(formattedCustomers); } catch (error) {