Skip to content

Commit

Permalink
Merge pull request #27 from Vizzuality/location-selector-searching-by…
Browse files Browse the repository at this point in the history
…-code-instead-of-name

Location selector to search by name instead of code/slug
  • Loading branch information
SARodrigues authored Oct 25, 2023
2 parents 0d40f3a + 8fa19a1 commit cd07767
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const LocationSelector: React.FC<LocationSelectorProps> = ({ className }) => {
const { name, code, type } = attributes;

return (
<CommandItem key={code} value={code} onSelect={handleLocationSelected}>
<CommandItem key={code} value={name} onSelect={() => handleLocationSelected(code)}>
<div className="flex w-full cursor-pointer justify-between gap-x-4">
<div className="flex font-bold underline">
<Check
Expand Down

0 comments on commit cd07767

Please sign in to comment.