Skip to content

Commit a2061a6

Browse files
committed
Add check to fix build failure
1 parent 15967d5 commit a2061a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/utils/schemaUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function generateDefaultValue(
9595
}
9696

9797
// Check if this property is required in the parent schema
98-
const isRequired = isPropertyRequired(propertyName, parentSchema);
98+
const isRequired = propertyName && parentSchema ? isPropertyRequired(propertyName, parentSchema) : false;
9999

100100
switch (schema.type) {
101101
case "string":

0 commit comments

Comments
 (0)