X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bmy-library%2Fmy-video-playlists%2Fmy-video-playlist-update.component.ts;h=c554d37724a0b63a991dce0cc5b6377506560351;hb=9556ce48e7d0aaed35753d982327bc60e1284894;hp=532423ba294a83c4da7ca999b81d28ff47d0a9c4;hpb=9514bb3bc0534c2a8c5ffefac013a1b8d3717c0a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlist-update.component.ts b/client/src/app/+my-library/my-video-playlists/my-video-playlist-update.component.ts index 532423ba2..c554d3772 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlist-update.component.ts +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlist-update.component.ts @@ -3,7 +3,7 @@ import { map, switchMap } from 'rxjs/operators' import { Component, OnDestroy, OnInit } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' import { AuthService, Notifier, ServerService } from '@app/core' -import { populateAsyncUserVideoChannels } from '@app/helpers' +import { listUserChannels } from '@app/helpers' import { setPlaylistChannelValidator, VIDEO_PLAYLIST_CHANNEL_ID_VALIDATOR, @@ -51,8 +51,8 @@ export class MyVideoPlaylistUpdateComponent extends MyVideoPlaylistEdit implemen setPlaylistChannelValidator(this.form.get('videoChannelId'), privacy) }) - populateAsyncUserVideoChannels(this.authService, this.userVideoChannels) - .catch(err => console.error('Cannot populate user video channels.', err)) + listUserChannels(this.authService) + .subscribe(channels => this.userVideoChannels = channels) this.paramsSub = this.route.params .pipe(