From 443ecefe67e1ef2762c723f50db00faa1599a2f9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 4 Jun 2016 19:02:32 +0200 Subject: [PATCH] Reload videos after removing one to avoid issues with paging etc --- client/src/app/videos/video-list/video-list.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/videos/video-list/video-list.component.ts b/client/src/app/videos/video-list/video-list.component.ts index b1ce55845..059317383 100644 --- a/client/src/app/videos/video-list/video-list.component.ts +++ b/client/src/app/videos/video-list/video-list.component.ts @@ -84,7 +84,7 @@ export class VideoListComponent implements OnInit { } onRemoved(video: Video) { - this.videos.splice(this.videos.indexOf(video), 1); + this.getVideos(); } onSort(sort: SortField) { -- 2.25.1