From 2bb3ec76da48ce1bf026f21d18f71330a78c946d Mon Sep 17 00:00:00 2001 From: SteveGT96 Date: Mon, 25 Sep 2023 11:38:10 +0100 Subject: [PATCH] update(Laboratory Filter): Fix disease field not being reset on disease type changed --- src/components/accessories/opds/filter/OpdFilterForm.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/accessories/opds/filter/OpdFilterForm.tsx b/src/components/accessories/opds/filter/OpdFilterForm.tsx index bd64491b6..135ff0702 100644 --- a/src/components/accessories/opds/filter/OpdFilterForm.tsx +++ b/src/components/accessories/opds/filter/OpdFilterForm.tsx @@ -302,6 +302,7 @@ export const OpdFilterForm: FC = ({ } if (fieldName === "diseaseTypeCode") { setDiseaseTypeCode((value ?? "") as string); + formik.setFieldValue("diseaseCode", ""); } }, [setFieldValue, handleBlur]