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

pull/316/head
Isaac Abadi 5 years ago
parent db78e4ad5e
commit ed1375d40b

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

Loading…
Cancel
Save