From ed1375d40bed41a4777a69160a5a0ba3d11be51c Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Sat, 9 Jan 2021 14:07:43 -0500 Subject: [PATCH] Fixed bug where deleting videos while searching caused them to still show up in the UI --- src/app/components/recent-videos/recent-videos.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/components/recent-videos/recent-videos.component.ts b/src/app/components/recent-videos/recent-videos.component.ts index 68125cf..d130ccd 100644 --- a/src/app/components/recent-videos/recent-videos.component.ts +++ b/src/app/components/recent-videos/recent-videos.component.ts @@ -251,6 +251,9 @@ export class RecentVideosComponent implements OnInit { this.postsService.openSnackBar('Delete success!', 'OK.'); this.files.splice(file.index, 1); for (let i = 0; i < this.files.length; i++) { this.files[i].index = i } + if (this.search_mode) { + this.filterFiles(this.search_text); + } this.filterByProperty(this.filterProperty['property']); } else { this.postsService.openSnackBar('Delete failed!', 'OK.');