From ca4dc1a839048573b35fa4b9d538bbac8da04655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EA=B8=B0=EC=98=81?= Date: Tue, 13 Aug 2024 17:42:27 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20LectureInfo=20=ED=98=B8=EC=B6=9C?= =?UTF-8?q?=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EB=B6=88=ED=95=84=EC=9A=94=20?= =?UTF-8?q?state=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Layout/LectureLayout.jsx | 15 +-------------- .../src/pages/LectureEditPage/LectureEditPage.jsx | 9 ++++----- 2 files changed, 5 insertions(+), 19 deletions(-) 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(() => {});