Browse Source

prevent sending search GET parameter if undefined in my watch history

pull/3597/head
Rigel Kent 1 week ago
parent
commit
4b4635bdb1
No known key found for this signature in database GPG Key ID: 5E53E96A494E452F
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      client/src/app/shared/shared-main/users/user-history.service.ts

+ 2
- 1
client/src/app/shared/shared-main/users/user-history.service.ts View File

@@ -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 })


Loading…
Cancel
Save