diff --git a/frontend/src/pages/LectureEditPage/LectureEditPage.jsx b/frontend/src/pages/LectureEditPage/LectureEditPage.jsx index 2137b43..e72a944 100644 --- a/frontend/src/pages/LectureEditPage/LectureEditPage.jsx +++ b/frontend/src/pages/LectureEditPage/LectureEditPage.jsx @@ -1,11 +1,13 @@ import { LectureForm } from '../../components/LectureForm'; import { useLectureEdit } from '../../hooks/api/useLectureEdit'; import { useParams, useNavigate, useLocation } from 'react-router-dom'; +import { useLectureInfo } from '../../hooks/api/useLectureInfo'; export default function LecutreEditPage() { const { lectureId } = useParams(); const location = useLocation(); const initialData = location.state.from; + const lectureInfo = useLectureInfo(lectureId); const navigate = useNavigate(); const { lectureEdit } = useLectureEdit(); @@ -13,6 +15,7 @@ export default function LecutreEditPage() { const handleSubmit = async (lectureObject) => await lectureEdit(lectureId, lectureObject) .then(() => { + lectureInfo.refetch(); navigate('..'); }) .catch(() => {}); diff --git a/frontend/src/pages/TeacherReportsetDetailPage/TeacherReportsetDetailPage.jsx b/frontend/src/pages/TeacherReportsetDetailPage/TeacherReportsetDetailPage.jsx index 7479d54..658fd40 100644 --- a/frontend/src/pages/TeacherReportsetDetailPage/TeacherReportsetDetailPage.jsx +++ b/frontend/src/pages/TeacherReportsetDetailPage/TeacherReportsetDetailPage.jsx @@ -22,7 +22,7 @@ export default function TeacherReportsetDetailPage() { title={ report.correctCount == -1 ? `${report.name} - 미응시` - : `${report.name} - ${report.title} 점수: ${report.correctCount}/${report.allCount}` + : `${report.name} - 점수: ${report.correctCount}/${report.allCount}` } sub={`${new Date(report.date).toLocaleDateString()} ${new Date(report.date).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}`} to={`../report/${report.reportId}`}