From d1aa48d435ceba7fe5c24753b2b9cebc97bacbda Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Thu, 11 Jan 2024 17:28:03 +0530 Subject: [PATCH] fix not found --- src/Components/Common/DistrictAutocompleteFormField.tsx | 2 +- src/Components/Common/LocalBodyAutocompleteFormField.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 (