Skip to content

Commit

Permalink
Fix error in Google Maps example
Browse files Browse the repository at this point in the history
Signed-off-by: wbt <wbt@users.noreply.github.com>
  • Loading branch information
wbt authored and aarongarciah committed Jun 20, 2024
1 parent 79f94eb commit dae0735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/data/material/components/autocomplete/GoogleMaps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ export default function GoogleMaps() {
option.structured_formatting.main_text,
matches.map((match: any) => [match.offset, match.offset + match.length]),
);

const {key, ...nonKeyProps} = props as any;
return (
<li {...props}>
<li key={key} {...nonKeyProps}>
<Grid container sx={{ alignItems: 'center' }}>
<Grid item sx={{ display: 'flex', width: 44 }}>
<LocationOnIcon sx={{ color: 'text.secondary' }} />
Expand Down

0 comments on commit dae0735

Please sign in to comment.