mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
feat: Add file validation for reactive-resume-json type in ImportDialog
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user