Skip to content

Commit

Permalink
Merge pull request #1929 from HUAHUAI23/fix/client
Browse files Browse the repository at this point in the history
fix(client): Fix issue with unhandled errors during resume import
  • Loading branch information
AmruthPillai authored Jun 10, 2024
2 parents e3b4105 + d0fd1e3 commit 454aa20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 454aa20

Please sign in to comment.