Skip to content

Commit

Permalink
[docs][Autocomplete] Fix GoogleMaps demo
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Dec 20, 2022
1 parent ba0ba65 commit fce90bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/data/material/components/autocomplete/GoogleMaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ export default function GoogleMaps() {
getOptionLabel={(option) =>
typeof option === 'string' ? option : option.description
}
filterOptions={(x) => x}
filterOptions={(_options) =>
_options.filter((option) => !!option.structured_formatting)
}
options={options}
autoComplete
includeInputInList
Expand Down
4 changes: 3 additions & 1 deletion docs/data/material/components/autocomplete/GoogleMaps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export default function GoogleMaps() {
getOptionLabel={(option) =>
typeof option === 'string' ? option : option.description
}
filterOptions={(x) => x}
filterOptions={(_options) =>
_options.filter((option) => !!option.structured_formatting)
}
options={options}
autoComplete
includeInputInList
Expand Down

0 comments on commit fce90bb

Please sign in to comment.