diff options
Diffstat (limited to 'client/src/app/+accounts')
-rw-r--r-- | client/src/app/+accounts/account-videos/account-videos.component.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/client/src/app/+accounts/account-videos/account-videos.component.ts b/client/src/app/+accounts/account-videos/account-videos.component.ts index 1814ef455..0d579fa0c 100644 --- a/client/src/app/+accounts/account-videos/account-videos.component.ts +++ b/client/src/app/+accounts/account-videos/account-videos.component.ts | |||
@@ -7,7 +7,7 @@ import { AbstractVideoList } from '../../shared/video/abstract-video-list' | |||
7 | import { VideoService } from '../../shared/video/video.service' | 7 | import { VideoService } from '../../shared/video/video.service' |
8 | import { Account } from '@app/shared/account/account.model' | 8 | import { Account } from '@app/shared/account/account.model' |
9 | import { AccountService } from '@app/shared/account/account.service' | 9 | import { AccountService } from '@app/shared/account/account.service' |
10 | import { tap } from 'rxjs/operators' | 10 | import { first, tap } from 'rxjs/operators' |
11 | import { I18n } from '@ngx-translate/i18n-polyfill' | 11 | import { I18n } from '@ngx-translate/i18n-polyfill' |
12 | import { Subscription } from 'rxjs' | 12 | import { Subscription } from 'rxjs' |
13 | import { ScreenService } from '@app/shared/misc/screen.service' | 13 | import { ScreenService } from '@app/shared/misc/screen.service' |
@@ -50,12 +50,13 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, | |||
50 | 50 | ||
51 | // Parent get the account for us | 51 | // Parent get the account for us |
52 | this.accountSub = this.accountService.accountLoaded | 52 | this.accountSub = this.accountService.accountLoaded |
53 | .subscribe(account => { | 53 | .pipe(first()) |
54 | this.account = account | 54 | .subscribe(account => { |
55 | this.account = account | ||
55 | 56 | ||
56 | this.reloadVideos() | 57 | this.reloadVideos() |
57 | this.generateSyndicationList() | 58 | this.generateSyndicationList() |
58 | }) | 59 | }) |
59 | } | 60 | } |
60 | 61 | ||
61 | ngOnDestroy () { | 62 | ngOnDestroy () { |