diff --git a/client/src/app/search/advanced-search.model.ts b/client/src/app/search/advanced-search.model.ts index e2a0253f4..50f00bc27 100644 --- a/client/src/app/search/advanced-search.model.ts +++ b/client/src/app/search/advanced-search.model.ts @@ -65,7 +65,7 @@ export class AdvancedSearch { for (const k of Object.keys(obj)) { if (k === 'sort') continue // Exception - if (obj[k] !== undefined) return true + if (obj[k] !== undefined && obj[k] !== '') return true } return false @@ -131,7 +131,7 @@ export class AdvancedSearch { for (const k of Object.keys(obj)) { if (k === 'sort') continue // Exception - if (obj[k] !== undefined) acc++ + if (obj[k] !== undefined && obj[k] !== '') acc++ } return acc diff --git a/client/src/app/search/search-filters.component.html b/client/src/app/search/search-filters.component.html index 8220a990b..07fb2c048 100644 --- a/client/src/app/search/search-filters.component.html +++ b/client/src/app/search/search-filters.component.html @@ -3,7 +3,12 @@