Skip to content

Commit 9aa62cc

Browse files
authored
🐛 Fix: 크루만들기 Exception Error fix (#184)
1 parent f268145 commit 9aa62cc

File tree

1 file changed

+4
-0
lines changed
  • src/components/common/input/file-input-wrap/file-input

1 file changed

+4
-0
lines changed

src/components/common/input/file-input-wrap/file-input/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ export default function FileInput({ value, isBlur, error, onChange }: FileInputP
2626
const fileInput = useRef<HTMLInputElement>(null);
2727

2828
const handleFileLoad = (file: File) => {
29+
if (!file || !(file instanceof Blob)) {
30+
return;
31+
}
32+
2933
// 이전 FileReader가 있을 경우 중단
3034
if (fileReader) {
3135
fileReader.abort();

0 commit comments

Comments
 (0)