Fixed bug where deleting videos while searching caused them to still show up in the UI

This commit is contained in:
Isaac Abadi
2021-01-09 14:07:43 -05:00
parent db78e4ad5e
commit ed1375d40b

View File

@@ -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.');