aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/search/advanced-search.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/search/advanced-search.model.ts')
-rw-r--r--client/src/app/search/advanced-search.model.ts4
1 files changed, 2 insertions, 2 deletions
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 {
65 for (const k of Object.keys(obj)) { 65 for (const k of Object.keys(obj)) {
66 if (k === 'sort') continue // Exception 66 if (k === 'sort') continue // Exception
67 67
68 if (obj[k] !== undefined) return true 68 if (obj[k] !== undefined && obj[k] !== '') return true
69 } 69 }
70 70
71 return false 71 return false
@@ -131,7 +131,7 @@ export class AdvancedSearch {
131 for (const k of Object.keys(obj)) { 131 for (const k of Object.keys(obj)) {
132 if (k === 'sort') continue // Exception 132 if (k === 'sort') continue // Exception
133 133
134 if (obj[k] !== undefined) acc++ 134 if (obj[k] !== undefined && obj[k] !== '') acc++
135 } 135 }
136 136
137 return acc 137 return acc