aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-13 16:07:26 +0100
committerRigel Kent <sendmemail@rigelk.eu>2021-01-13 16:07:30 +0100
commit4b4635bdb1ed745000df6c9ace45fe727c64ce00 (patch)
tree76f8096953a26995e1a06d382b4ca7b271f9ab0a /client/src
parent5188db66c7d8ed9d5f2fed34a5cdf268842db970 (diff)
downloadPeerTube-4b4635bdb1ed745000df6c9ace45fe727c64ce00.tar.gz
PeerTube-4b4635bdb1ed745000df6c9ace45fe727c64ce00.tar.zst
PeerTube-4b4635bdb1ed745000df6c9ace45fe727c64ce00.zip
prevent sending search GET parameter if undefined in my watch history
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/shared/shared-main/users/user-history.service.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-main/users/user-history.service.ts b/client/src/app/shared/shared-main/users/user-history.service.ts
index bb87dcba8..91268af8c 100644
--- a/client/src/app/shared/shared-main/users/user-history.service.ts
+++ b/client/src/app/shared/shared-main/users/user-history.service.ts
@@ -23,7 +23,8 @@ export class UserHistoryService {
23 23
24 let params = new HttpParams() 24 let params = new HttpParams()
25 params = this.restService.addRestGetParams(params, pagination) 25 params = this.restService.addRestGetParams(params, pagination)
26 params = params.append('search', search) 26
27 if (search) params = params.append('search', search)
27 28
28 return this.authHttp 29 return this.authHttp
29 .get<ResultList<Video>>(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL, { params }) 30 .get<ResultList<Video>>(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL, { params })