summaryrefslogtreecommitdiff
path: root/src/lib/ServiceList.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-04-17 11:33:32 +0300
committereug-vs <eug-vs@keemail.me>2021-04-17 11:33:32 +0300
commitf0e470472a16957217b091489afdab2006719294 (patch)
treedfb177a6272bf59a5f3ce3f5680f5b1b8fbce984 /src/lib/ServiceList.tsx
parent27f51e35bf732667e4e6015fb76f7fd6871e41cd (diff)
downloadcommercel-ui-f0e470472a16957217b091489afdab2006719294.tar.gz
feat: add sort to ListTable
Diffstat (limited to 'src/lib/ServiceList.tsx')
-rw-r--r--src/lib/ServiceList.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ServiceList.tsx b/src/lib/ServiceList.tsx
index 74ad10b..e7015ae 100644
--- a/src/lib/ServiceList.tsx
+++ b/src/lib/ServiceList.tsx
@@ -16,8 +16,7 @@ const ServiceList: React.FC = () => {
route: `/${service.route}/add${location.search}`,
}];
- const handleRowClick = (index: number) => {
- const item = data && data[index];
+ const handleRowClick = (item: any) => {
const route = service.rowLink
? service.rowLink(item)
: `/${service.route}/${item?._id}`;