diff options
Diffstat (limited to 'src/lib')
-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}`; |