Skip to content

Commit 402257f

Browse files
committed
fix: 홈페이지 강의 오류 수정
1 parent 28b00f0 commit 402257f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

backend/backend/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
path('login/', views.LoginView.as_view(), name='github_login'),
2929
path('login/github/callback/', views.GitHubLoginView.as_view(), name='github_login_callback'),
3030
path('problems/', include('problems.urls')),
31-
# path('HomePage/', include('HomePage.urls')),
3231
path('users/', include('users.urls')),
3332
path('codes/', include('codes.urls')),
3433
path('boards/', include('boards.urls')),

frontend/src/pages/HomePage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function HomePage() {
125125
{recentLecture.map((lecture, index) => (
126126
<Lectures
127127
key={index}
128-
id={lecture.id}
128+
id={lecture.lecture_id}
129129
youtubeLink={lecture.lecture_link}
130130
title={lecture.lecture_title}
131131
datetime={lecture.create_at}
@@ -165,7 +165,7 @@ function HomePage() {
165165
id={lecture.lecture_id}
166166
youtubeLink={lecture.lecture_link}
167167
title={lecture.lecture_title}
168-
memo={lecture.memo}
168+
memo={lecture.memo ? lecture.memo : 'ChatGPT 한줄평이 아직 작성되지 않았습니다.'}
169169
/>
170170
))}
171171
</LectureList>

0 commit comments

Comments
 (0)