Skip to content

Commit 845a98b

Browse files
fix: Fixes broken url
1 parent a947296 commit 845a98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/CustomerList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const CustomerList = (props) => (
1111
<List {...props} filters={<CustomerFilter />} title='List of Customers'>
1212
<Datagrid
1313
rowClick={(id, basePath, record) => {
14-
return `/rentals?filter=%7B%22customer_id%22%3A%22${id}%22%7D&order=ASC&page=1&perPage=10&sort=id`;
14+
return `/rentals?filter=%7B%22customer_email%22%3A%22${record.email}%22%7D&order=ASC&page=1&perPage=10&sort=film_title`;
1515
}}
1616
>
1717
<TextField disabled source='id' />

0 commit comments

Comments
 (0)