From 9565c684c6f828aa9bc44451ff493868333093da Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Aug 2024 08:09:07 +0000 Subject: [PATCH 1/2] Create draft PR for #421 From 04b4c50c30c699886e95ac327f239390627413e2 Mon Sep 17 00:00:00 2001 From: Jeongwoo Park <121204715+lurgi@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:37:26 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=EC=98=B5=EC=85=98=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=20=EC=95=88=ED=95=B4=EB=8F=84=20request=20body?= =?UTF-8?q?=EC=97=90=20=EB=8B=B4=EA=B8=B0=EB=8A=94=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/hooks/useDashboardCreateForm/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/hooks/useDashboardCreateForm/index.tsx b/frontend/src/hooks/useDashboardCreateForm/index.tsx index e49587ce3..527eb3a7f 100644 --- a/frontend/src/hooks/useDashboardCreateForm/index.tsx +++ b/frontend/src/hooks/useDashboardCreateForm/index.tsx @@ -63,7 +63,7 @@ export default function useDashboardCreateForm(): UseDashboardCreateFormReturn { dashboardFormInfo: { ...recruitmentInfoState, questions: applyState.slice(3).map(({ id, ...value }) => { - const temp = { ...value }; + const temp = { ...value, choices: value.choices.filter(({ choice }) => !!choice) }; return { ...temp, orderIndex: id }; }), }, @@ -114,7 +114,6 @@ export default function useDashboardCreateForm(): UseDashboardCreateFormReturn { } else { questionsCopy[index].choices = []; } - console.log(questionsCopy); return questionsCopy; }); };