From ff2cac9fa361a3c5489078f441ed54230c045971 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 18 Nov 2020 14:21:26 +0100 Subject: Fix accept ownership change accept --- .../my-ownership/my-accept-ownership/my-accept-ownership.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/src') diff --git a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts index 587a455f0..51e9b2a6d 100644 --- a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts +++ b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts @@ -1,3 +1,4 @@ +import { switchMap } from 'rxjs/operators' import { Component, ElementRef, EventEmitter, OnInit, Output, ViewChild } from '@angular/core' import { AuthService, Notifier } from '@app/core' import { OWNERSHIP_CHANGE_CHANNEL_VALIDATOR } from '@app/shared/form-validators/video-ownership-change-validators' @@ -36,7 +37,8 @@ export class MyAcceptOwnershipComponent extends FormReactive implements OnInit { ngOnInit () { this.videoChannels = [] - this.videoChannelService.listAccountVideoChannels(this.authService.getUser().account) + this.authService.userInformationLoaded + .pipe(switchMap(() => this.videoChannelService.listAccountVideoChannels(this.authService.getUser().account))) .subscribe(videoChannels => this.videoChannels = videoChannels.data) this.buildForm({ -- cgit v1.2.3