Verified Commit f3628e69 authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix video playlists list

parent d1f21ebb
......@@ -81,10 +81,10 @@ export class MyAccountVideoPlaylistsComponent implements OnInit {
}
private loadVideoPlaylists () {
const playlistsObservable = this.videoPlaylistService.listAccountPlaylists(this.user.account, this.pagination, '-updatedAt')
this.authService.userInformationLoaded
.pipe(flatMap(() => playlistsObservable))
.pipe(flatMap(() => {
return this.videoPlaylistService.listAccountPlaylists(this.user.account, this.pagination, '-updatedAt')
}))
.subscribe(res => {
this.videoPlaylists = this.videoPlaylists.concat(res.data)
this.pagination.totalItems = res.total
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment