diff --git a/iBox/Sources/BoxList/BoxListViewModel.swift b/iBox/Sources/BoxList/BoxListViewModel.swift index 7cc78ef..a4ba8e9 100644 --- a/iBox/Sources/BoxList/BoxListViewModel.swift +++ b/iBox/Sources/BoxList/BoxListViewModel.swift @@ -150,6 +150,9 @@ class BoxListViewModel { func deleteFolder(at row: Int) { sectionsToReload.remove(boxList[row].id) boxList.remove(at: row) + for box in boxList { + sectionsToReload.update(with: box.id) + } } func editFolderName(at row: Int, name: String) {