mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-12 15:52:56 +10:00
Merge pull request #1929 from HUAHUAI23/fix/client
fix(client): Fix issue with unhandled errors during resume import
This commit is contained in:
@ -100,9 +100,8 @@ export const ImportDialog = () => {
|
||||
}, [filetype]);
|
||||
|
||||
const onValidate = async () => {
|
||||
const { file, type } = formSchema.parse(form.getValues());
|
||||
|
||||
try {
|
||||
const { file, type } = formSchema.parse(form.getValues());
|
||||
if (type === ImportType["reactive-resume-json"]) {
|
||||
const parser = new ReactiveResumeParser();
|
||||
const data = await parser.readFile(file);
|
||||
|
||||
Reference in New Issue
Block a user