1
0
Fork 0

Fix video playlists list

This commit is contained in:
Chocobozzz 2019-08-07 10:22:21 +02:00
parent d1f21ebba6
commit f3628e694b
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

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