summaryrefslogtreecommitdiff
path: root/src/lib/ServiceList.tsx
diff options
context:
space:
mode:
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}`;