Merge branch 'fe/refactor/review-detail' into 'fe/develop'

Fe/refactor/review detail

See merge request s11-s-project/S11P21S002!251
This commit is contained in:
조현수 2024-09-30 17:18:17 +09:00
commit 3be59747db

View File

@ -15,12 +15,7 @@ export default function TrainingTab({ projectId }: TrainingTabProps) {
const [isPolling, setIsPolling] = useState(false); const [isPolling, setIsPolling] = useState(false);
const queryClient = useQueryClient(); const queryClient = useQueryClient();
const { mutate: startTraining } = useTrainModelQuery(numericProjectId as number, { const { mutate: startTraining } = useTrainModelQuery(numericProjectId as number);
onError: () => {
alert('학습 요청 실패');
setIsPolling(false);
},
});
const handleTrainingStart = (trainData: ModelTrainRequest) => { const handleTrainingStart = (trainData: ModelTrainRequest) => {
if (numericProjectId !== null) { if (numericProjectId !== null) {