mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fix client admin
This commit is contained in:
parent
f627b712c9
commit
42374cf5d4
3 changed files with 35 additions and 32 deletions
|
@ -19,7 +19,7 @@ export class RestDataSource extends ServerDataSource {
|
|||
}
|
||||
|
||||
protected addSortRequestOptions (requestOptions: RequestOptionsArgs) {
|
||||
const searchParams = requestOptions.search as URLSearchParams
|
||||
const searchParams = requestOptions.params as URLSearchParams
|
||||
|
||||
if (this.sortConf) {
|
||||
this.sortConf.forEach((fieldConf) => {
|
||||
|
@ -33,7 +33,7 @@ export class RestDataSource extends ServerDataSource {
|
|||
}
|
||||
|
||||
protected addPagerRequestOptions (requestOptions: RequestOptionsArgs) {
|
||||
const searchParams = requestOptions.search as URLSearchParams
|
||||
const searchParams = requestOptions.params as URLSearchParams
|
||||
|
||||
if (this.pagingConf && this.pagingConf['page'] && this.pagingConf['perPage']) {
|
||||
const perPage = this.pagingConf['perPage']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue