Skip to content

Commit

Permalink
fix not found
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jan 11, 2024
1 parent 68b1afc commit d1aa48d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Common/DistrictAutocompleteFormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Props = FormFieldBaseProps<DistrictModel["id"]> & {
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 (
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Common/LocalBodyAutocompleteFormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Props = FormFieldBaseProps<LocalBodyModel["id"]> & {
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 (
Expand Down

0 comments on commit d1aa48d

Please sign in to comment.