aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
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()