Skip to content

Commit 2cef012

Browse files
committed
WEB-4460 address automated review feedback
1 parent d679d92 commit 2cef012

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/PatientDrawer/useAgpCGM/useAgpCGM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const useAgpCGM = (
126126
dispatch(actions.worker.removeGeneratedPDFS());
127127
dispatch(actions.worker.dataWorkerRemoveDataRequest(null, patientId));
128128
};
129-
}, []);
129+
}, [patientId]);
130130

131131
// Note: probably unnecessary; failsafe to ensure that data is being returned for correct patient
132132
const isCorrectPatientInState = pdf.opts?.patient?.id === patientId;

0 commit comments

Comments
 (0)