Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
tags may have space
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Nov 22, 2023
1 parent c797b40 commit eb9514e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/search/filtersList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const FiltersList = ({
}
className=""
>
{k.split(" ")[0]}
{k.includes(" (") ? k.split(" (")[0] : k}
<Error />
</FilterPill>
))}
Expand Down
2 changes: 1 addition & 1 deletion pages/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const Search = () => {
types: ['dataproduct', 'story'] as SearchType[],
groups: [],
teamIDs: searchParam.teams?.map((it) => teamNameToID.get(it)).filter(it=> !!it),
keywords: searchParam.keywords.map((k) => k.split(" ")[0]),
keywords: searchParam.keywords.map((k) => k.includes(" (") ? k.split(" (")[0] : k),
text: searchParam.freeText,
},
},
Expand Down

0 comments on commit eb9514e

Please sign in to comment.