Fix video playlists list
This commit is contained in:
parent
d1f21ebba6
commit
f3628e694b
1 changed files with 3 additions and 3 deletions
|
@ -81,10 +81,10 @@ export class MyAccountVideoPlaylistsComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
private loadVideoPlaylists () {
|
private loadVideoPlaylists () {
|
||||||
const playlistsObservable = this.videoPlaylistService.listAccountPlaylists(this.user.account, this.pagination, '-updatedAt')
|
|
||||||
|
|
||||||
this.authService.userInformationLoaded
|
this.authService.userInformationLoaded
|
||||||
.pipe(flatMap(() => playlistsObservable))
|
.pipe(flatMap(() => {
|
||||||
|
return this.videoPlaylistService.listAccountPlaylists(this.user.account, this.pagination, '-updatedAt')
|
||||||
|
}))
|
||||||
.subscribe(res => {
|
.subscribe(res => {
|
||||||
this.videoPlaylists = this.videoPlaylists.concat(res.data)
|
this.videoPlaylists = this.videoPlaylists.concat(res.data)
|
||||||
this.pagination.totalItems = res.total
|
this.pagination.totalItems = res.total
|
||||||
|
|
Loading…
Reference in a new issue