Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
konavivekramakrishna committed Jan 23, 2024
1 parent d043709 commit 706de33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Components/Patient/PatientFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ export default function PatientFilter(props: any) {

const lsgSearch = useCallback(
async (search: string) => {
const res = await request(routes.getAllLocalBody, {
const { data } = await request(routes.getAllLocalBody, {
query: {
local_body_name: search,
},
});
return res?.data?.results;
return data?.results;
},
[dispatch]
);
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Patient/SampleViewAdmin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export default function SampleViewAdmin() {
manageSamples = (
<>
{sampleList}
<Pagination totalCount={sampeleData?.count || 0} />
<Pagination totalCount={sampeleData?.count} />
</>
);
} else if (sampeleData && sampeleData.count === 0) {
Expand Down

0 comments on commit 706de33

Please sign in to comment.