Skip to content

Commit

Permalink
Got rid of resizing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BriannaVH committed Jul 5, 2023
1 parent ed3a0e6 commit dfe45c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/pages/[resourceType]/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default function ResourceIDPage({ jsonData }: InferGetServerSidePropsType
};
handleResize();
window.addEventListener('resize', handleResize);
return window.removeEventListener('resize', handleResize);
}, []);

const {
Expand Down Expand Up @@ -200,7 +199,7 @@ export default function ResourceIDPage({ jsonData }: InferGetServerSidePropsType
</Text>
<Space h="md" />
{dataReqsView === 'formatted' &&
dataRequirements?.dataRequirement.map((data: fhir4.DataRequirement, index: any) => (
dataRequirements?.dataRequirement.map((data: fhir4.DataRequirement, index) => (
<DataReqs
key={index}
type={data.type}
Expand Down

0 comments on commit dfe45c9

Please sign in to comment.