diff --git a/docs/data/material/components/autocomplete/GoogleMaps.js b/docs/data/material/components/autocomplete/GoogleMaps.js
index 90168362e2f93d..a418c05c4e67b2 100644
--- a/docs/data/material/components/autocomplete/GoogleMaps.js
+++ b/docs/data/material/components/autocomplete/GoogleMaps.js
@@ -120,9 +120,9 @@ export default function GoogleMaps() {
option.structured_formatting.main_text,
matches.map((match) => [match.offset, match.offset + match.length]),
);
-
+ const { key, ...nonKeyProps } = props;
return (
-
+
diff --git a/docs/data/material/components/autocomplete/GoogleMaps.tsx b/docs/data/material/components/autocomplete/GoogleMaps.tsx
index 10a69af2fac362..b8c76ef91caaa3 100644
--- a/docs/data/material/components/autocomplete/GoogleMaps.tsx
+++ b/docs/data/material/components/autocomplete/GoogleMaps.tsx
@@ -144,7 +144,7 @@ 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;
+ const { key, ...nonKeyProps } = props;
return (