Skip to content

Commit

Permalink
[FIX] 불필요 에러처리 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
cjy3458 committed Aug 28, 2024
1 parent 247e8f4 commit 5320729
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/tales/createMain/SelectOption/InputImg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ const InputImg = ({ setIsLoading }: InputImgProps) => {
const formData = new FormData();
formData.append("file", file);
if (setIsLoading) setIsLoading(true);
try {
const keywords: string[] = await createKeyword(formData);
navigate("/createTale/keyword", { state: { keywords } });
} catch {
alert("키워드가 이상");
}
const keywords: string[] = await createKeyword(formData);
navigate("/createTale/keyword", { state: { keywords } });
}
};
return (
Expand Down

0 comments on commit 5320729

Please sign in to comment.