Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Use the .slice() function to optimize Autosuggest - Material story
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Apr 25, 2023
1 parent b5ae680 commit 3d41cd7
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,10 @@ export const Default = Template.bind({});

export const TwoItems = Template.bind({});
TwoItems.args = {
materialSuggestions: [
autosuggestMaterialSuggestions[0],
autosuggestMaterialSuggestions[1],
],
materialSuggestions: autosuggestMaterialSuggestions.slice(0, 2),
};

export const SingleItem = Template.bind({});
SingleItem.args = {
materialSuggestions: [autosuggestMaterialSuggestions[0]],
materialSuggestions: autosuggestMaterialSuggestions.slice(0, 1),
};

0 comments on commit 3d41cd7

Please sign in to comment.