diff --git a/src/Components/Common/DistrictAutocompleteFormField.tsx b/src/Components/Common/DistrictAutocompleteFormField.tsx index 54762c894fa..25fef151f2a 100644 --- a/src/Components/Common/DistrictAutocompleteFormField.tsx +++ b/src/Components/Common/DistrictAutocompleteFormField.tsx @@ -12,7 +12,7 @@ type Props = FormFieldBaseProps & { export default function DistrictAutocompleteFormField(props: Props) { const { data, loading } = useQuery(routes.getDistrictByState, { pathParams: { id: props.state! }, - prefetch: props.state === 0 || !!props.state, + prefetch: !!props.state, }); return ( diff --git a/src/Components/Common/LocalBodyAutocompleteFormField.tsx b/src/Components/Common/LocalBodyAutocompleteFormField.tsx index 9c1ebecb098..8d0821cb43c 100644 --- a/src/Components/Common/LocalBodyAutocompleteFormField.tsx +++ b/src/Components/Common/LocalBodyAutocompleteFormField.tsx @@ -12,7 +12,7 @@ type Props = FormFieldBaseProps & { export default function LocalBodyAutocompleteFormField(props: Props) { const { data, loading } = useQuery(routes.getLocalbodyByDistrict, { pathParams: { id: props.district! }, - prefetch: props.district === 0 || !!props.district, + prefetch: !!props.district, }); return (