From 624bca15fb7a15a0a788c3d06c41af451bfca28c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 May 2019 12:02:34 +0200 Subject: [PATCH] Fix duplicates in playlist add component (release branch) --- .../video-playlist/video-add-to-playlist.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts b/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts index be15f2352..35cad9d14 100644 --- a/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts +++ b/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts @@ -57,8 +57,6 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, this.buildForm({ displayName: this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_DISPLAY_NAME }) - - this.init() } ngOnChanges (simpleChanges: SimpleChanges) { @@ -67,7 +65,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, } } - init () { + reload () { this.resetOptions(true) if (this.lazyLoad !== true) this.load() @@ -76,7 +74,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, unload () { this.videoPlaylists = [] - this.init() + this.reload() this.cd.markForCheck() }