From 9a5e833add07a092cf26a34e233ea95f19ad9ee2 Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Mon, 19 Aug 2024 22:58:05 +0530 Subject: [PATCH] Treating physician: Fixes an edge case where clearing query leads to field getting disabled (#8355) --- src/Components/Common/UserAutocompleteFormField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Common/UserAutocompleteFormField.tsx b/src/Components/Common/UserAutocompleteFormField.tsx index a42fea1890c..dd7c4c4301e 100644 --- a/src/Components/Common/UserAutocompleteFormField.tsx +++ b/src/Components/Common/UserAutocompleteFormField.tsx @@ -62,7 +62,7 @@ export default function UserAutocomplete(props: UserSearchProps) { setDisabled(true); field.handleChange(undefined as unknown as UserBareMinimum); } - }, [loading, query, field.required, data?.results, props.noResultsError]); + }, [loading, field.required, data?.results, props.noResultsError]); return (