diff --git a/Recordings-controller-owned-networking/RecordingsClient/FolderViewController.swift b/Recordings-controller-owned-networking/RecordingsClient/FolderViewController.swift index b463293..3ce08f9 100644 --- a/Recordings-controller-owned-networking/RecordingsClient/FolderViewController.swift +++ b/Recordings-controller-owned-networking/RecordingsClient/FolderViewController.swift @@ -148,8 +148,10 @@ class FolderViewController: UITableViewController, RecordViewControllerDelegate } func insert(item: Item) { + self.tableView.beginUpdates() self.folder.contents.append(item) self.tableView.insertRows(at: [IndexPath(row: self.folder.contents.endIndex-1, section: 0)], with: .automatic) + self.tableView.endUpdates() } override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {