Skip to content

Commit

Permalink
Fix #3032 (#3245)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogiunta authored Sep 29, 2022
1 parent 2f9ba32 commit f6c6b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/helpers/getAttributesFromExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function getAttributesFromExtensions(extensions: Extensions): ExtensionAt
...attribute,
}

if (attribute.isRequired && attribute.default === undefined) {
if (attribute?.isRequired && attribute?.default === undefined) {
delete mergedAttr.default
}

Expand Down

0 comments on commit f6c6b67

Please sign in to comment.