Skip to content

Commit

Permalink
fix: fix code example (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahdayan authored and francoischalifour committed Feb 1, 2021
1 parent fbfca35 commit 30f8949
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/website/docs/sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ autocomplete({
return [
{ label: 'Twitter', url: 'https://twitter.com' },
{ label: 'GitHub', url: 'https://github.com' },
].filter((item) => item.toLowerCase().includes(query.toLowerCase()));
].filter(({ label }) =>
label.toLowerCase().includes(query.toLowerCase())
);
},
getItemUrl({ item }) {
return item.url;
Expand Down

0 comments on commit 30f8949

Please sign in to comment.