Fix crash when editing accounts in a list

Closes #127
This commit is contained in:
Shadowfacts 2021-06-26 18:52:19 -04:00
parent b0f23e46ba
commit 667d30a710
1 changed files with 9 additions and 9 deletions

View File

@ -80,8 +80,7 @@ class EditListAccountsViewController: EnhancedTableViewController {
self.nextRange = pagination?.older
self.mastodonController.persistentContainer.addAll(accounts: accounts)
self.mastodonController.persistentContainer.addAll(accounts: accounts) {
var snapshot = self.dataSource.snapshot()
snapshot.deleteSections([.accounts])
snapshot.appendSections([.accounts])
@ -92,6 +91,7 @@ class EditListAccountsViewController: EnhancedTableViewController {
}
}
}
}
// MARK: - Table view delegate