1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00

Correctly load count and rows per page

This commit is contained in:
Chocobozzz 2025-06-16 09:30:03 +02:00
parent 9ca0d0739b
commit 1d2b3ed4a2
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -259,9 +259,14 @@ export class MyVideosComponent extends RestTable<Video> implements OnInit, OnDes
}
if (queryParams.start !== undefined) this.pagination.start = +queryParams.start
if (queryParams.count !== undefined) this.pagination.count = +queryParams.count
if (queryParams.count !== undefined) {
this.pagination.count = this.rowsPerPage = +queryParams.count
}
if (queryParams.sortOrder !== undefined) this.sort.order = +queryParams.sortOrder
if (queryParams.sortField !== undefined) this.sort.field = queryParams.sortField
if (queryParams.search !== undefined) this.search = queryParams.search
this.reloadData()