From: Chocobozzz Date: Wed, 7 Aug 2019 08:22:21 +0000 (+0200) Subject: Fix video playlists list X-Git-Tag: v1.4.0-rc.1~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f3628e694b8e378b25c34b66f8e1edb7d78afd5f;p=oweals%2Fpeertube.git Fix video playlists list --- diff --git a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.ts b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.ts index 0c4e4b0d6..76b13fe2b 100644 --- a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.ts +++ b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.ts @@ -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