Fixed build issues

This commit is contained in:
AmirReza Jamali
2025-09-09 13:32:58 +03:30
parent d73a64fe52
commit 83bd4394fc
18 changed files with 139 additions and 80 deletions
+5 -3
View File
@@ -46,8 +46,8 @@ const CustomersTable = () => {
</TableRow>
</TableHeader>
<TableBody>
{allCustomers.map((customer, index) => (
<TableRow key={index}>
{allCustomers.map((customer) => (
<TableRow key={customer.id}>
<TableCell colSpan={100}>{customer.full_name}</TableCell>
<TableCell colSpan={100}>{customer.email}</TableCell>
<TableCell colSpan={100}>{customer.created_at}</TableCell>
@@ -55,7 +55,9 @@ const CustomersTable = () => {
<TableCell colSpan={100}>{customer.status}</TableCell>
<TableCell colSpan={100}>
{customer.companies?.length ? (
customer.companies.map((c) => <span>{c.name}, </span>)
customer.companies.map((c) => (
<span key={c.id}>{c.name}, </span>
))
) : (
<span>None</span>
)}