Skip to content

Commit

Permalink
(fix) - Ward app - fix NPE in useEffect dependency arrays (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
chibongho authored Dec 6, 2024
1 parent ff8f6f5 commit 15c68bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function PatientDischargeWorkspace(props: WardPatientWorkspacePro
createEncounter,
wardPatient?.patient,
wardPatient.bed.id,
emrConfiguration.exitFromInpatientEncounterType,
emrConfiguration,
t,
closeWorkspaceWithSavedChanges,
wardPatientGroupDetails,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,7 @@ export default function PatientBedSwapForm({
closeWorkspaceWithSavedChanges();
});
},
[
beds,
createEncounter,
patient,
emrConfiguration.bedAssignmentEncounterType,
t,
wardPatientGroupDetails,
closeWorkspaceWithSavedChanges,
],
[beds, createEncounter, patient, emrConfiguration, t, wardPatientGroupDetails, closeWorkspaceWithSavedChanges],
);

const onError = useCallback(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,7 @@ export default function PatientTransferForm({
closeWorkspaceWithSavedChanges,
createEncounter,
dispositionsWithTypeTransfer,
emrConfiguration.consultFreeTextCommentsConcept.uuid,
emrConfiguration.dispositionDescriptor.dispositionConcept.uuid,
emrConfiguration.dispositionDescriptor.dispositionSetConcept.uuid,
emrConfiguration.dispositionDescriptor.internalTransferLocationConcept.uuid,
emrConfiguration.transferRequestEncounterType,
emrConfiguration,
patient,
t,
wardPatientGroupDetails,
Expand Down

0 comments on commit 15c68bb

Please # to comment.