Skip to content

Commit

Permalink
Treating physician: Fixes an edge case where clearing query leads to …
Browse files Browse the repository at this point in the history
…field getting disabled (#8355)
  • Loading branch information
rithviknishad authored Aug 19, 2024
1 parent e7608d5 commit 9a5e833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Common/UserAutocompleteFormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<FormField field={field}>
Expand Down

0 comments on commit 9a5e833

Please sign in to comment.