From 2465cd85ce555cff15b03e14d8cd6cdbcdcb6731 Mon Sep 17 00:00:00 2001 From: abg3000 Date: Sun, 25 Aug 2024 16:53:29 +0900 Subject: [PATCH 1/2] fix: error --- .../features/containers/AnsweredQuestionsContainer.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 (
From 19ddaae7204dcd3aeb25662da308ce572f7a39e4 Mon Sep 17 00:00:00 2001 From: abg3000 Date: Sun, 25 Aug 2024 17:02:24 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=EC=9D=B4=EC=A0=84=20=EC=A7=88?= =?UTF-8?q?=EB=AC=B8=20=EB=AA=A9=EB=A1=9D=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/PreviousQuestion/PreviousQuestionItem.tsx | 2 +- .../containers/PreviousQuestionListContainer.tsx | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) 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 (