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:
commit
3be59747db
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user