aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/search/search.service.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-23 11:12:03 +0200
committerChocobozzz <me@florianbigard.com>2018-07-24 14:04:05 +0200
commit7afea880e561196671f186045c94f09511189405 (patch)
tree63d71c3c79a55e659a7359dbb17d47b84f1fb405 /client/src/app/search/search.service.ts
parent0b18f4aa80df8868bf34605423c7a298dffbb2aa (diff)
downloadPeerTube-7afea880e561196671f186045c94f09511189405.tar.gz
PeerTube-7afea880e561196671f186045c94f09511189405.tar.zst
PeerTube-7afea880e561196671f186045c94f09511189405.zip
Handle back/forward page in advanced search
Diffstat (limited to 'client/src/app/search/search.service.ts')
-rw-r--r--client/src/app/search/search.service.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/search/search.service.ts b/client/src/app/search/search.service.ts
index c6106afd6..b46cb97f4 100644
--- a/client/src/app/search/search.service.ts
+++ b/client/src/app/search/search.service.ts
@@ -44,7 +44,7 @@ export class SearchService {
44 const value = advancedSearchObject[name] 44 const value = advancedSearchObject[name]
45 if (!value) continue 45 if (!value) continue
46 46
47 if (Array.isArray(value)) { 47 if (Array.isArray(value) && value.length !== 0) {
48 for (const v of value) params = params.append(name, v) 48 for (const v of value) params = params.append(name, v)
49 } else { 49 } else {
50 params = params.append(name, value) 50 params = params.append(name, value)