Skip to content

Commit

Permalink
Added missing useEffect dependency in chat demo (#4527)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyebberson committed May 7, 2024
1 parent 0fdc9c5 commit 932e2ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function CreateEncounter(props: CreateEncounterProps): JSX.Element {
};

getEncounterPeriod(props.communication).then(setPeriod).catch(console.error);
}, [props.communication]);
}, [medplum, props.communication]);

const attenders = getAttenders(props.communication.recipient, profile, false);
const subject = getEncounterSubject(props.communication);
Expand Down

0 comments on commit 932e2ec

Please sign in to comment.