aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-29 15:51:19 +0200
committerChocobozzz <me@florianbigard.com>2021-07-29 15:51:19 +0200
commit916bf5283b90935c166966918d895cf6f55e24f7 (patch)
treeb67ec2ab1a79183884e2cde2dec423f9cd453f75 /client/src/app/shared
parent7e8f19603ba314706141f58c9fe8a50eb0ffa7b2 (diff)
downloadPeerTube-916bf5283b90935c166966918d895cf6f55e24f7.tar.gz
PeerTube-916bf5283b90935c166966918d895cf6f55e24f7.tar.zst
PeerTube-916bf5283b90935c166966918d895cf6f55e24f7.zip
Fix empty search
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/shared-search/search.service.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-search/search.service.ts b/client/src/app/shared/shared-search/search.service.ts
index 2c26eb2e5..a1603da98 100644
--- a/client/src/app/shared/shared-search/search.service.ts
+++ b/client/src/app/shared/shared-search/search.service.ts
@@ -79,7 +79,8 @@ export class SearchService {
79 79
80 let params = new HttpParams() 80 let params = new HttpParams()
81 params = this.restService.addRestGetParams(params, pagination) 81 params = this.restService.addRestGetParams(params, pagination)
82 params = params.append('search', search) 82
83 if (search) params = params.append('search', search)
83 84
84 if (advancedSearch) { 85 if (advancedSearch) {
85 const advancedSearchObject = advancedSearch.toChannelAPIObject() 86 const advancedSearchObject = advancedSearch.toChannelAPIObject()
@@ -110,7 +111,8 @@ export class SearchService {
110 111
111 let params = new HttpParams() 112 let params = new HttpParams()
112 params = this.restService.addRestGetParams(params, pagination) 113 params = this.restService.addRestGetParams(params, pagination)
113 params = params.append('search', search) 114
115 if (search) params = params.append('search', search)
114 116
115 if (advancedSearch) { 117 if (advancedSearch) {
116 const advancedSearchObject = advancedSearch.toPlaylistAPIObject() 118 const advancedSearchObject = advancedSearch.toPlaylistAPIObject()