feat: Add file validation for reactive-resume-json type in ImportDialog

This commit is contained in:
Amruth Pillai
2024-06-10 07:49:16 +02:00
parent ab10d026d6
commit a44846b632

View File

@ -100,9 +100,9 @@ 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);