|
@@ -86,6 +86,13 @@ const RegisterAvailableFilterBar: React.FC<Props> = ({
|
|
|
const selectedBodyPart =
|
|
|
bodyParts.find((item) => item.body_part_id == val) || null;
|
|
|
dispatch(setCurrentBodyPart(selectedBodyPart));
|
|
|
+ dispatch(
|
|
|
+ fetchViewsOrProtocols({
|
|
|
+ selection: selected,
|
|
|
+ patientType: currentPatientType?.patient_type_id ?? null,
|
|
|
+ bodyPart: selectedBodyPart?.body_part_id ?? null,
|
|
|
+ })
|
|
|
+ );
|
|
|
}}
|
|
|
disabled={!currentPatientType}
|
|
|
/>
|
|
@@ -106,6 +113,13 @@ const RegisterAvailableFilterBar: React.FC<Props> = ({
|
|
|
(item) => item.patient_type_id === val
|
|
|
);
|
|
|
dispatch(setCurrentPatientType(selectedPatientType || null));
|
|
|
+ dispatch(
|
|
|
+ fetchViewsOrProtocols({
|
|
|
+ selection: selected,
|
|
|
+ patientType: selectedPatientType?.patient_type_id ?? null,
|
|
|
+ bodyPart: currentBodyPart?.body_part_id ?? null,
|
|
|
+ })
|
|
|
+ );
|
|
|
}}
|
|
|
/>
|
|
|
</Col>
|