Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix duplicates in playlist add component (release branch)

Chocobozzz624bca15fb7a
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 be15f23529..35cad9d14f 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()
}