Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
refactor: deleteItem 적용안된 부분 개선 #99
Browse files Browse the repository at this point in the history
  • Loading branch information
llghdud921 committed Jul 25, 2022
1 parent f662e1b commit 629e346
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ extension CategoryListViewController {
let delete = UIContextualAction(style: .normal, title: "삭제") { _, _, _ in
self.showActionSheet(titles: "삭제", message: "카테고리를 삭제하시겠어요?") { _ in
self.viewModel?.deleteCategory(id: self.list[indexPath.item].serverID) {
DispatchQueue.main.async {
self.setCategoryList(sort: self.selectedSort)
}
self.deleteItem(indexPath)
}
}
}
Expand Down

0 comments on commit 629e346

Please sign in to comment.