[dyad] Corrected customer name mapping in BookOutForm - wrote 1 file(s)

This commit is contained in:
[dyad] 2025-09-12 16:17:45 +02:00
parent 22dbfc3884
commit b86d694e29

View file

@ -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) {