Skip to content

Commit

Permalink
fix loading (#7643)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 authored Apr 18, 2024
1 parent 997a714 commit 7742c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Patient/SampleDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export const SampleDetails = ({ id }: DetailRoute) => {
);
};

if (isLoading) {
if (isLoading || !sampleDetails) {
return <Loading />;
}

Expand Down

0 comments on commit 7742c01

Please sign in to comment.