From 33b9099450abb0ef34fe93cc0a6262a860817759 Mon Sep 17 00:00:00 2001 From: JH713 Date: Tue, 9 Apr 2024 14:46:42 +0900 Subject: [PATCH] fix: folder error --- iBox/Sources/BoxList/BoxListViewModel.swift | 3 +++ 1 file changed, 3 insertions(+) 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) {