Skip to content

Commit

Permalink
[FIX] 커리큘럼 메인에서 마지막 주차별 리스트 주차표기 에러 해결 (Team-LionHeart#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffalswo2 committed Jul 21, 2023
1 parent 5d8d734 commit e3f686d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ private extension CurriculumListByWeekViewController {
guard let indexPath = notification.userInfo?["bookmarkCellIndexPath"] as? Int else { return }
guard let buttonSelected = notification.userInfo?["bookmarkButtonSelected"] as? Bool else { return }
guard let listByWeekDatas else { return }
try await BookmarkService.shared.postBookmark(BookmarkRequest(articleId: listByWeekDatas.articleData[indexPath].articleId,
bookmarkStatus: buttonSelected))
try await BookmarkService.shared.postBookmark(
BookmarkRequest(articleId: listByWeekDatas.articleData[indexPath].articleId,
bookmarkStatus: buttonSelected))
hideLoading()
} catch {
guard let error = error as? NetworkError else { return }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,7 @@ extension CurriculumViewController: UITableViewDataSource {
}

let listByWeekVC = CurriculumListByWeekViewController()


if indexPath.section == curriculumViewDatas.count - 1 {
listByWeekVC.weekToIndexPathItem = (indexPath.section * 4) + indexPath.row + 1

} else {
listByWeekVC.weekToIndexPathItem = (indexPath.section * 4) + indexPath.row
}

listByWeekVC.weekToIndexPathItem = (indexPath.section * 4) + indexPath.row
self.navigationController?.pushViewController(listByWeekVC, animated: true)

}
Expand Down

0 comments on commit e3f686d

Please sign in to comment.