diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-23 11:12:03 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-24 14:04:05 +0200 |
commit | 7afea880e561196671f186045c94f09511189405 (patch) | |
tree | 63d71c3c79a55e659a7359dbb17d47b84f1fb405 /client/src/app/search/search.service.ts | |
parent | 0b18f4aa80df8868bf34605423c7a298dffbb2aa (diff) | |
download | PeerTube-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.ts | 2 |
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) |