diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-11 09:22:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-11 09:41:55 +0200 |
commit | 9abd170dec9a0b929da1f0947e3c7019e38631da (patch) | |
tree | d43418b375d306dcf96af1e9c2f8b6a6775e6e22 /client/src/app/core/rest/rest.service.ts | |
parent | 02c01341f4dae30ec6b81fcb644952393d73c4a8 (diff) | |
download | PeerTube-9abd170dec9a0b929da1f0947e3c7019e38631da.tar.gz PeerTube-9abd170dec9a0b929da1f0947e3c7019e38631da.tar.zst PeerTube-9abd170dec9a0b929da1f0947e3c7019e38631da.zip |
Fix tags in search filters
Diffstat (limited to 'client/src/app/core/rest/rest.service.ts')
-rw-r--r-- | client/src/app/core/rest/rest.service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/core/rest/rest.service.ts b/client/src/app/core/rest/rest.service.ts index 9e32c6d58..4f1fc8848 100644 --- a/client/src/app/core/rest/rest.service.ts +++ b/client/src/app/core/rest/rest.service.ts | |||
@@ -49,7 +49,7 @@ export class RestService { | |||
49 | const value = object[name] | 49 | const value = object[name] |
50 | if (value === undefined || value === null) continue | 50 | if (value === undefined || value === null) continue |
51 | 51 | ||
52 | if (Array.isArray(value) && value.length !== 0) { | 52 | if (Array.isArray(value)) { |
53 | for (const v of value) params = params.append(name, v) | 53 | for (const v of value) params = params.append(name, v) |
54 | } else { | 54 | } else { |
55 | params = params.append(name, value) | 55 | params = params.append(name, value) |