diff options
author | eug-vs <eug-vs@keemail.me> | 2021-04-17 11:33:32 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-04-17 11:33:32 +0300 |
commit | f0e470472a16957217b091489afdab2006719294 (patch) | |
tree | dfb177a6272bf59a5f3ce3f5680f5b1b8fbce984 /src/lib/ServiceList.tsx | |
parent | 27f51e35bf732667e4e6015fb76f7fd6871e41cd (diff) | |
download | commercel-ui-f0e470472a16957217b091489afdab2006719294.tar.gz |
feat: add sort to ListTable
Diffstat (limited to 'src/lib/ServiceList.tsx')
-rw-r--r-- | src/lib/ServiceList.tsx | 3 |
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}`; |