Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] #147 - 업로드한 코스 디테일뷰 서버통신 실패 해결 #148

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct UploadedCourseDetailResponseDto: Codable {

struct UploadUser: Codable {
let nickname: String
let level: Int
let level: String
let image: String
let isNowUser: Bool?
}
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ extension UploadedCourseInfoVC: UICollectionViewDataSource {
guard collectionView.cellForItem(at: indexPath) is CourseListCVC else { return }
guard let selectedCells = collectionView.indexPathsForSelectedItems else { return }
guard let cell = collectionView.cellForItem(at: indexPath) as? CourseListCVC else { return }
let courseList = uploadedCourseList[indexPath.item]
let publicCourseModel = uploadedCourseList[indexPath.item]
if isEditMode {
self.deleteCourseButton.isEnabled = true
let countSelectCells = selectedCells.count
Expand All @@ -300,6 +300,7 @@ extension UploadedCourseInfoVC: UICollectionViewDataSource {
self.deleteCourseButton.setTitle(title: "삭제하기")
self.deleteCourseButton.setEnabled(true)
let courseDetailVC = CourseDetailVC()
courseDetailVC.setCourseId(courseId: publicCourseModel.courseId, publicCourseId: publicCourseModel.id)
courseDetailVC.hidesBottomBarWhenPushed = true
self.navigationController?.pushViewController(courseDetailVC, animated: true)
cell.selectCell(didSelect: false)
Expand Down