Skip to content

Commit ecf5a54

Browse files
committed
Remove unnecessary spread
1 parent 66662fa commit ecf5a54

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/data/material/components/autocomplete/UseAutocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function UseAutocomplete() {
6464
{groupedOptions.length > 0 ? (
6565
<Listbox {...getListboxProps()}>
6666
{groupedOptions.map((option, index) => {
67-
const { key, ...optionProps } = { ...getOptionProps({ option, index }) };
67+
const { key, ...optionProps } = getOptionProps({ option, index });
6868
return (
6969
<li key={key} {...optionProps}>
7070
{option.title}

docs/data/material/components/autocomplete/UseAutocomplete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function UseAutocomplete() {
6464
{groupedOptions.length > 0 ? (
6565
<Listbox {...getListboxProps()}>
6666
{(groupedOptions as typeof top100Films).map((option, index) => {
67-
const { key, ...optionProps } = { ...getOptionProps({ option, index }) };
67+
const { key, ...optionProps } = getOptionProps({ option, index });
6868
return (
6969
<li key={key} {...optionProps}>
7070
{option.title}

docs/data/material/components/autocomplete/UseAutocomplete.tsx.preview

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{groupedOptions.length > 0 ? (
66
<Listbox {...getListboxProps()}>
77
{(groupedOptions as typeof top100Films).map((option, index) => {
8-
const { key, ...optionProps } = { ...getOptionProps({ option, index }) };
8+
const { key, ...optionProps } = getOptionProps({ option, index });
99
return (
1010
<li key={key} {...optionProps}>
1111
{option.title}

0 commit comments

Comments
 (0)