From d85719f1ef960ff7494f8d0c882fc80aa820b190 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Fri, 12 Sep 2025 13:44:33 +0200 Subject: [PATCH] [dyad] Aligned supplier data mapping with PocketBase field names - wrote 2 file(s) --- src/components/suppliers/columns.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/suppliers/columns.tsx b/src/components/suppliers/columns.tsx index fbaaada..086634a 100644 --- a/src/components/suppliers/columns.tsx +++ b/src/components/suppliers/columns.tsx @@ -15,23 +15,23 @@ import { export type Supplier = { id: string - name: string // This will map to supplier_name from PocketBase - address: string // This will map to supplier_address from PocketBase - phone: string // This will map to supplier_phone_number from PocketBase + name: string // Maps to supplier_name from PocketBase + address: string // Maps to supplier_address from PocketBase + phone: string // Maps to supplier_phone_number from PocketBase email: string } export const columns: ColumnDef[] = [ { - accessorKey: "name", // Matches the 'name' property in the Supplier type + accessorKey: "name", // Corresponds to the 'name' property in the Supplier type header: "Supplier Name", }, { - accessorKey: "address", // Matches the 'address' property in the Supplier type + accessorKey: "address", // Corresponds to the 'address' property in the Supplier type header: "Address", }, { - accessorKey: "phone", // Matches the 'phone' property in the Supplier type + accessorKey: "phone", // Corresponds to the 'phone' property in the Supplier type header: "Phone", }, {