From f3628e694b8e378b25c34b66f8e1edb7d78afd5f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 7 Aug 2019 10:22:21 +0200 Subject: [PATCH] Fix video playlists list --- .../my-account-video-playlists.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.25.1