Feat: 에러 알림 추가

This commit is contained in:
jhynsoo 2024-09-25 15:00:24 +09:00
parent d8208b0b79
commit 17190b13c1

View File

@ -62,7 +62,15 @@ export default function ProjectStructure({ project }: { project: Project }) {
variant="outlinePrimary"
className="w-full"
onClick={() => {
requestAutoLabel.mutate({ projectId: project.id }, { onSuccess: refetch });
requestAutoLabel.mutate(
{ projectId: project.id },
{
onSuccess: refetch,
onError: () => {
alert('자동 레이블링을 요청하는 중 오류가 발생했습니다.');
},
}
);
}}
>
<Play