[dyad] Corrected customer name mapping in BookOutForm - wrote 1 file(s)
This commit is contained in:
parent
22dbfc3884
commit
b86d694e29
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue