diff --git a/frontend/src/components/Layout/LectureLayout.jsx b/frontend/src/components/Layout/LectureLayout.jsx index beabfd3..3124987 100644 --- a/frontend/src/components/Layout/LectureLayout.jsx +++ b/frontend/src/components/Layout/LectureLayout.jsx @@ -24,14 +24,6 @@ export default function LectureLayout() { navigate('..'); }); }; - const lectureData = { - title: lecture.title, - description: lecture.description, - plan: lecture.plan, - startDate: lecture.startDate, - endDate: lecture.endDate, - time: lecture.time, - }; useEffect(() => { if (['NOT_ENROLLED', 'MANAGED_BY_OTHERS', 'PENDING'].includes(lecture.status)) { @@ -66,12 +58,7 @@ export default function LectureLayout() { {userType === 'teacher' && ( 퀴즈 성적 보기 - - 강의 정보 수정 - + 강의 정보 수정
  • await lectureEdit(lectureId, lectureObject) .then(() => { - lectureInfo.refetch(); + refetch(); navigate('..'); }) .catch(() => {});