Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

prevent sending search GET parameter if undefined in my watch history

Rigel Kent4b4635bdb1ed
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 bb87dcba87..91268af8c7 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 {
let params = new HttpParams()
params = this.restService.addRestGetParams(params, pagination)
- params = params.append('search', search)
+
+ if (search) params = params.append('search', search)
return this.authHttp
.get<ResultList<Video>>(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL, { params })