From c1a45378a74a82bc7ab9307e957e520795eea6bc Mon Sep 17 00:00:00 2001 From: Sejin Lee Date: Fri, 19 May 2023 22:05:57 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20#134=20-=20level=EC=9D=84=20=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=EB=A7=81=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=EB=B0=8F=20=EB=94=94=ED=85=8C=EC=9D=BC=EB=B7=B0=EC=97=90=20cou?= =?UTF-8?q?rseId=20=EC=A3=BC=EC=9E=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ResponseDto/UploadedCourseDetailResponseDto.swift | 2 +- .../Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Runnect-iOS/Runnect-iOS/Network/Dto/CourseDetailDto/ResponseDto/UploadedCourseDetailResponseDto.swift b/Runnect-iOS/Runnect-iOS/Network/Dto/CourseDetailDto/ResponseDto/UploadedCourseDetailResponseDto.swift index 0c1de183..9d72ad5c 100644 --- a/Runnect-iOS/Runnect-iOS/Network/Dto/CourseDetailDto/ResponseDto/UploadedCourseDetailResponseDto.swift +++ b/Runnect-iOS/Runnect-iOS/Network/Dto/CourseDetailDto/ResponseDto/UploadedCourseDetailResponseDto.swift @@ -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? } diff --git a/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift b/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift index 4e7a8026..d30d70a1 100644 --- a/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift +++ b/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift @@ -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 @@ -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)