From d0fd1e3ff52a45647739f317263a22221845e403 Mon Sep 17 00:00:00 2001 From: HUAHUAI23 Date: Thu, 30 May 2024 12:39:25 +0000 Subject: [PATCH] fix(client): Fix issue with unhandled errors during resume import --- apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx b/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx index 13648c956..bf9eeef85 100644 --- a/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx +++ b/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx @@ -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);