diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.ts | 6 |
1 files 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 { | |||
81 | } | 81 | } |
82 | 82 | ||
83 | private loadVideoPlaylists () { | 83 | private loadVideoPlaylists () { |
84 | const playlistsObservable = this.videoPlaylistService.listAccountPlaylists(this.user.account, this.pagination, '-updatedAt') | ||
85 | |||
86 | this.authService.userInformationLoaded | 84 | this.authService.userInformationLoaded |
87 | .pipe(flatMap(() => playlistsObservable)) | 85 | .pipe(flatMap(() => { |
86 | return this.videoPlaylistService.listAccountPlaylists(this.user.account, this.pagination, '-updatedAt') | ||
87 | })) | ||
88 | .subscribe(res => { | 88 | .subscribe(res => { |
89 | this.videoPlaylists = this.videoPlaylists.concat(res.data) | 89 | this.videoPlaylists = this.videoPlaylists.concat(res.data) |
90 | this.pagination.totalItems = res.total | 90 | this.pagination.totalItems = res.total |