fix: default value on generate (#2885)

This commit is contained in:
KinfeMichael Tariku
2025-06-03 01:06:19 -07:00
committed by GitHub
parent 6cbc5e5317
commit 91c5cd7478

View File

@@ -9,7 +9,7 @@ export function withApplyDefault(
return value;
}
if (value === undefined || value === null) {
if (field.defaultValue) {
if (field.defaultValue !== undefined) {
if (typeof field.defaultValue === "function") {
return field.defaultValue();
}