Skip to content

Commit

Permalink
Merge pull request #393 from CityOfZion/dora-392
Browse files Browse the repository at this point in the history
Trimming search input
  • Loading branch information
lock9 authored Oct 10, 2021
2 parents eef6f17 + 4c81c53 commit cb81cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/searchActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function handleSearchInput(rawSearch: string) {
return async (
dispatch: ThunkDispatch<State, void, Action>,
): Promise<void> => {
const search = rawSearch.replace(',', '')
const search = rawSearch.replace(',', '').trim()
dispatch(searchInputEntered(search))
try {
const { searchResults, searchType } = await executeSearch(search)
Expand Down

0 comments on commit cb81cfa

Please sign in to comment.