Skip to content

Commit 942a862

Browse files
Dauniushadziraf
authored andcommitted
fix: converting properties without 'value' field
1 parent 5748a93 commit 942a862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buildRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const buildRouter = async (
6262
const fields = fromPairs(
6363
Object.keys((body ?? {}) as Record<string, unknown>).map(key => [
6464
key,
65-
getFile(body[key] as any) ?? body[key].value,
65+
getFile(body[key] as any) ?? body[key].value ?? body[key],
6666
])
6767
);
6868
const html = await controller[route.action](

0 commit comments

Comments
 (0)