Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ratnesh-maurya committed Oct 4, 2024
1 parent 8a9ab76 commit 23083d2
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 23083d2

Please sign in to comment.