mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-02 13:53:06 +00:00
fix(search): fixing case where someone issues a null query (#2890)
This commit is contained in:
parent
0cf31544b8
commit
d376dc49db
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user