aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/search/advanced-search.model.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2019-12-04 17:12:23 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-12-05 09:06:01 +0100
commit25266908666d4d465e1c8ec90135eaa00c91732e (patch)
treea769c6d59f021b6b0a39766f4054a0d31a57a0c6 /client/src/app/search/advanced-search.model.ts
parentfee47735bde36d9b8d0aed6284e9e8c9f6697001 (diff)
downloadPeerTube-25266908666d4d465e1c8ec90135eaa00c91732e.tar.gz
PeerTube-25266908666d4d465e1c8ec90135eaa00c91732e.tar.zst
PeerTube-25266908666d4d465e1c8ec90135eaa00c91732e.zip
search filtering improvements per #1654
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