From f0e470472a16957217b091489afdab2006719294 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sat, 17 Apr 2021 11:33:32 +0300
Subject: feat: add sort to ListTable

---
 src/lib/ServiceList.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/lib/ServiceList.tsx')

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}`;
-- 
cgit v1.2.3

