Skip to content

Commit be22beb

Browse files
committed
[Feat] #136 - 러닝 기록 삭제 상세 페이지 api 연결
1 parent 87dbcb6 commit be22beb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/ActivityRecordDetailVC.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ extension ActivityRecordDetailVC {
320320
let status = result.statusCode
321321
if 200..<300 ~= status {
322322
print("삭제 성공")
323+
self.navigationController?.popViewController(animated: false)
324+
323325
}
324326
if status >= 400 {
325327
print("400 error")

Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/ActivityRecordInfoVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ extension ActivityRecordInfoVC: UITableViewDelegate {
259259
tableView.deselectRow(at: indexPath, animated: true)
260260
self.deleteRecordButton.setTitle(title: "삭제하기")
261261
activityRecordDetailVC.setData(model: activityRecordList[indexPath.row])
262-
activityRecordDetailVC.setRecordId(recordId: activityRecordList[indexPath.row].courseId)
262+
activityRecordDetailVC.setRecordId(recordId: activityRecordList[indexPath.row].id)
263263

264264
// 편집 모드가 아닐 때 상세 페이지로 이동
265265
self.navigationController?.pushViewController(activityRecordDetailVC, animated: true)

0 commit comments

Comments
 (0)