Skip to content

Commit

Permalink
fix: keep file original data type
Browse files Browse the repository at this point in the history
  • Loading branch information
zce committed Dec 6, 2023
1 parent d52fc7f commit 59a7358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const load = async (path: string, schema: ZodType): Promise<VFile> => {
)

// set parsed data to file
file.data.parsed = isArr ? processed[0] : processed
file.data.parsed = isArr ? processed : processed[0]
} catch (err: any) {
file.message(err.message)
}
Expand Down

0 comments on commit 59a7358

Please sign in to comment.