From 23083d27c8c8d84943bb74b012d827a079b04000 Mon Sep 17 00:00:00 2001 From: Ratnesh Maurya <85143283+ratnesh-maurya@users.noreply.github.com> Date: Fri, 4 Oct 2024 22:59:46 +0530 Subject: [PATCH] patch --- Frontend/src/views/Register/NMK_Manage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Frontend/src/views/Register/NMK_Manage.tsx b/Frontend/src/views/Register/NMK_Manage.tsx index 6ed78cd..1c14fce 100644 --- a/Frontend/src/views/Register/NMK_Manage.tsx +++ b/Frontend/src/views/Register/NMK_Manage.tsx @@ -19,6 +19,7 @@ import { DocumentTextIcon, PhoneIcon } from '@heroicons/react/20/solid'; import { IoMdPerson } from "react-icons/io"; import UserRegisteration from './userRegisteration'; import { getNMK } from '@/services/NMKService'; +import { getUsers } from '../../services/UserService'; type Person = { Name: string; @@ -143,7 +144,7 @@ const SimpleTable: React.FC = ({ id }) => { useEffect(() => { const fetchData = async () => { try { - const response = await getNMK({ NMK_Code: NMK_Code }); + const response = await getUsers({ NMK_Code: NMK_Code }); const responseData = await response.data; if (!Array.isArray(responseData.data)) { console.error('Invalid data format. Expected an array:', responseData.data);