Skip to content

Commit

Permalink
Trim for filtering (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanVor authored Jan 11, 2025
1 parent 3de154d commit c36b875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/src/Showcase.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const Showcase: StoryFn = () => {
if (search.length === 0) {
filteredItems = items;
} else {
const searchLower = search.toLowerCase();
const searchLower = search.toLowerCase().trim();
filteredItems = items.filter(({meta}) => {
return (
meta.name.toLowerCase().includes(searchLower) ||
Expand Down

0 comments on commit c36b875

Please sign in to comment.