From a778d62836af1e9b997f5886e157a5cf6967d5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=98=84=EC=A1=B0?= Date: Mon, 30 Sep 2024 16:52:52 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20=EC=97=90=EB=9F=AC=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/ModelManage/TrainingTab.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/src/components/ModelManage/TrainingTab.tsx b/frontend/src/components/ModelManage/TrainingTab.tsx index 5ed4453..6f7c555 100644 --- a/frontend/src/components/ModelManage/TrainingTab.tsx +++ b/frontend/src/components/ModelManage/TrainingTab.tsx @@ -15,12 +15,7 @@ export default function TrainingTab({ projectId }: TrainingTabProps) { const [isPolling, setIsPolling] = useState(false); const queryClient = useQueryClient(); - const { mutate: startTraining } = useTrainModelQuery(numericProjectId as number, { - onError: () => { - alert('학습 요청 실패'); - setIsPolling(false); - }, - }); + const { mutate: startTraining } = useTrainModelQuery(numericProjectId as number); const handleTrainingStart = (trainData: ModelTrainRequest) => { if (numericProjectId !== null) {