Add check to fix build failure
This commit is contained in:
parent
15967d5572
commit
a2061a6f76
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ export function generateDefaultValue(
|
|||
}
|
||||
|
||||
// Check if this property is required in the parent schema
|
||||
const isRequired = isPropertyRequired(propertyName, parentSchema);
|
||||
const isRequired = propertyName && parentSchema ? isPropertyRequired(propertyName, parentSchema) : false;
|
||||
|
||||
switch (schema.type) {
|
||||
case "string":
|
||||
|
|
|
|||
Loading…
Reference in a new issue