Refactor: 에러 처리 제거

This commit is contained in:
정현조 2024-09-30 16:52:52 +09:00
parent 9e2a6033aa
commit a778d62836

View File

@ -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) {