From 7300c1d504ba9d63d4fa720046a4893d12a14c88 Mon Sep 17 00:00:00 2001 From: Jong Date: Sun, 25 Aug 2024 17:03:15 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9C=A0=EC=A0=80=20=EC=A7=88=EB=AC=B8?= =?UTF-8?q?=20=EB=8B=B5=EB=B3=80=20=EB=AA=A9=EB=A1=9D=20=EC=97=90=EB=9F=AC?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20(#142)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: error * fix: 이전 질문 목록 버그 수정 --- .../features/containers/AnsweredQuestionsContainer.tsx | 8 ++++---- .../components/PreviousQuestion/PreviousQuestionItem.tsx | 2 +- .../containers/PreviousQuestionListContainer.tsx | 9 ++++++++- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/packages/web-domains/src/about-me/features/containers/AnsweredQuestionsContainer.tsx b/packages/web-domains/src/about-me/features/containers/AnsweredQuestionsContainer.tsx index 613de8a1..021262ba 100644 --- a/packages/web-domains/src/about-me/features/containers/AnsweredQuestionsContainer.tsx +++ b/packages/web-domains/src/about-me/features/containers/AnsweredQuestionsContainer.tsx @@ -29,10 +29,6 @@ export const AnsweredQuestionsContainer = forwardRef((_, ref) => { const checkboxRefs = useRef<(HTMLInputElement | null)[]>([]); - if (answersLength === 0) { - return ; - } - const handleModify = () => { const checkedIds = checkboxRefs.current .filter((checkbox) => checkbox?.checked) @@ -46,6 +42,10 @@ export const AnsweredQuestionsContainer = forwardRef((_, ref) => { onMutate: handleModify, })); + if (answersLength === 0) { + return ; + } + return (
diff --git a/packages/web-domains/src/home/features/previous-question/components/PreviousQuestion/PreviousQuestionItem.tsx b/packages/web-domains/src/home/features/previous-question/components/PreviousQuestion/PreviousQuestionItem.tsx index 47aa33ae..fbfae28b 100644 --- a/packages/web-domains/src/home/features/previous-question/components/PreviousQuestion/PreviousQuestionItem.tsx +++ b/packages/web-domains/src/home/features/previous-question/components/PreviousQuestion/PreviousQuestionItem.tsx @@ -25,7 +25,7 @@ export const PreviousQuestionItem = ({ meetingId, question }: PreviousQuestionIt listStyle: 'none', }} > - +
{ const { previousQuestionList, targetRef, meetingId } = usePreviousQuestionListService(); if (!previousQuestionList || !previousQuestionList.length) { - return ; + return ( + <> + + + + ); } return (