fix: LearningLecturesPage data 단순화
This commit is contained in:
parent
0eff16c42d
commit
b6cbd3f595
@ -3,8 +3,8 @@ import { Link } from 'react-router-dom';
|
||||
import { useMyLectures } from '../../hooks/api/useMyLectures';
|
||||
|
||||
export default function LearningLecturesPage() {
|
||||
const { data: myLectures } = useMyLectures();
|
||||
const onGoingClasses = myLectures?.data ?? [];
|
||||
const { data } = useMyLectures();
|
||||
const onGoingClasses = data?.data ?? [];
|
||||
|
||||
return (
|
||||
<section>
|
||||
|
Loading…
Reference in New Issue
Block a user