Skip to content

Commit

Permalink
Merge pull request #61 from Ratnesh-Team/develop
Browse files Browse the repository at this point in the history
patch
  • Loading branch information
ratnesh-maurya authored Oct 4, 2024
2 parents d461130 + 23083d2 commit e7b9651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Frontend/src/views/Register/NMK_Manage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -143,7 +144,7 @@ const SimpleTable: React.FC<Props> = ({ 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);
Expand Down

0 comments on commit e7b9651

Please sign in to comment.