Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix render loop

dominik-zeglenc5f2a4ee6ce7
diff --git a/saleor/static/dashboard-next/customers/views/CustomerList.tsx b/saleor/static/dashboard-next/customers/views/CustomerList.tsx
index 3231dc9edc..43fdd051b1 100644
--- a/saleor/static/dashboard-next/customers/views/CustomerList.tsx
+++ b/saleor/static/dashboard-next/customers/views/CustomerList.tsx
@@ -45,7 +45,8 @@ export const CustomerList: React.StatelessComponent<CustomerListProps> = ({
onAdd={() => navigate(customerAddUrl)}
onNextPage={loadNextPage}
onPreviousPage={loadPreviousPage}
- onRowClick={id => navigate(customerUrl(encodeURIComponent(id)))}
+ onRowClick={id => () =>
+ navigate(customerUrl(encodeURIComponent(id)))}
/>
);
}}