diff --git a/.circleci/config.yml b/.circleci/config.yml index c197d5ad45..acd767c0c0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -244,7 +244,7 @@ workflows: filters: branches: only: - - feature/private-spec + - free # This is beta env for production soft releases - "build-prod-beta": context : org-global @@ -260,6 +260,7 @@ workflows: branches: only: - develop + - search-whitespace # Production builds are exectuted # when PR is merged to the master # Don't change anything in this configuration diff --git a/src/shared/components/challenge-listing/Filters/ChallengeSearchBar/index.jsx b/src/shared/components/challenge-listing/Filters/ChallengeSearchBar/index.jsx index ffea9a9f1c..d4589770fe 100644 --- a/src/shared/components/challenge-listing/Filters/ChallengeSearchBar/index.jsx +++ b/src/shared/components/challenge-listing/Filters/ChallengeSearchBar/index.jsx @@ -30,7 +30,7 @@ export default function ChallengeSearchBar({ id="search-challenges" onInput={(e) => { const s = e.target.value; - onSearch(s.trim()); + onSearch(s); }} placeholder={placeholder} type="text" diff --git a/src/shared/containers/challenge-listing/ChallengeSearchBar.jsx b/src/shared/containers/challenge-listing/ChallengeSearchBar.jsx index a8d1275137..254d144973 100644 --- a/src/shared/containers/challenge-listing/ChallengeSearchBar.jsx +++ b/src/shared/containers/challenge-listing/ChallengeSearchBar.jsx @@ -23,7 +23,7 @@ export class Container extends React.Component { filterState, } = this.props; - setFilterState({ ..._.clone(filterState), search: text }); + setFilterState({ ..._.clone(filterState), search: text.trim() }); } render() {