fix(search): fixing case where someone issues a null query (#2890)

This commit is contained in:
Gabe Lyons 2021-07-16 12:19:51 -07:00 committed by GitHub
parent 0cf31544b8
commit d376dc49db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ export const SearchPage = () => {
const filters: Array<FacetFilterInput> = useFilters(params);
const onSearch = (q: string, type?: EntityType) => {
if (query.trim().length === 0) {
if (q.trim().length === 0) {
return;
}
analytics.event({