diff --git a/frontend/src/components/Article/ArticlePreview/ArticlePreview.jsx b/frontend/src/components/Article/ArticlePreview/ArticlePreview.jsx index 1186c35..7031c44 100644 --- a/frontend/src/components/Article/ArticlePreview/ArticlePreview.jsx +++ b/frontend/src/components/Article/ArticlePreview/ArticlePreview.jsx @@ -13,7 +13,7 @@ export default function ArticlePreview({ to, title, contents = [] }) {
- {contents.map((content) => { + {contents.map?.((content) => { return ( - {messages.map((message) => ( + {messages.map?.((message) => (
  • input[type='text'] { flex: 1; diff --git a/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx b/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx index 133c3e8..ab72705 100644 --- a/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx +++ b/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx @@ -14,7 +14,7 @@ export default function LearningLecturesPage() {

    수강중인 강의

    - {onGoingClasses.map((lecture) => ( + {onGoingClasses.map?.((lecture) => ( - {notices?.map((notice) => ( + {notices?.map?.((notice) => ( - {questions.map((question) => ( + {questions.map?.((question) => ( - {onGoingClasses.map((lecture) => ( + {onGoingClasses.map?.((lecture) => ( - {allClasses?.map((lecture) => ( + {allClasses.map?.((lecture) => ( - {students.map((student) => { + {students.map?.((student) => { return ( - {notices.map((notice) => { + {notices.map?.((notice) => { if (notice.sub && notice.title) { return (