diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-07 10:22:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-07 12:07:59 +0200 |
commit | f3628e694b8e378b25c34b66f8e1edb7d78afd5f (patch) | |
tree | ed78ace598a3241cdaa3029be20242d3f38bcb50 /client/src/app | |
parent | d1f21ebba640ccec21ca96496d0319f7511ac0b4 (diff) | |
download | PeerTube-f3628e694b8e378b25c34b66f8e1edb7d78afd5f.tar.gz PeerTube-f3628e694b8e378b25c34b66f8e1edb7d78afd5f.tar.zst PeerTube-f3628e694b8e378b25c34b66f8e1edb7d78afd5f.zip |
Fix video playlists list
Diffstat (limited to 'client/src/app')
-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 |