fix: allow prefilling date field (#1794)

Allows the prefilling of date fields when creating a document from a
template.

Current implementation is super dirty and should be replaced asap.
This commit is contained in:
Lucas Smith
2025-05-14 20:06:53 +10:00
committed by GitHub
parent f928503a33
commit 5e3a2b8f76
2 changed files with 38 additions and 4 deletions

View File

@ -155,6 +155,10 @@ export const ZFieldMetaPrefillFieldsSchema = z
label: z.string().optional(),
value: z.string().optional(),
}),
z.object({
type: z.literal('date'),
value: z.string().optional(),
}),
]),
);