Skip to content

Commit

Permalink
fix navigation on enter (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherange authored Jan 31, 2024
1 parent 6c98726 commit 3cda30b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/web-shared/components/Searchbar/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ export default function Autocomplete({
});
},
getItemUrl({ item }) {
return `/?query=${item.name}`;
if (item?.name) {
return `/?query=${item.name}`;
} else {
return item.url;
}
},
},
{
Expand Down

0 comments on commit 3cda30b

Please sign in to comment.