Skip to content

Commit

Permalink
fix location select not working for single select
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jan 3, 2024
1 parent e4ef4fa commit 47acb73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Common/LocationSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const LocationSelect = (props: LocationSelectProps) => {
disabled={props.disabled}
value={props.selected as string}
options={data?.results ?? []}
onChange={({ value }) => props.setSelected([value])}
onChange={({ value }) => props.setSelected(value)}
onQuery={(search_text) => refetch({ query: { search_text } })}
isLoading={loading}
placeholder="Search by location name"
Expand Down

0 comments on commit 47acb73

Please sign in to comment.