fix(client): Fix issue with unhandled errors during resume import

This commit is contained in:
HUAHUAI23
2024-05-30 12:39:25 +00:00
parent 3f29ca3add
commit d0fd1e3ff5

View File

@ -100,9 +100,8 @@ export const ImportDialog = () => {
}, [filetype]); }, [filetype]);
const onValidate = async () => { const onValidate = async () => {
const { file, type } = formSchema.parse(form.getValues());
try { try {
const { file, type } = formSchema.parse(form.getValues());
if (type === ImportType["reactive-resume-json"]) { if (type === ImportType["reactive-resume-json"]) {
const parser = new ReactiveResumeParser(); const parser = new ReactiveResumeParser();
const data = await parser.readFile(file); const data = await parser.readFile(file);