Skip to content

Commit

Permalink
fix: empty props
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Mar 19, 2024
1 parent 85abad1 commit e03df2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fieldSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default (props) => {
'description',
'field_type',
...schemaExtenderValues.fields,
...(props.field_type === 'static_text' ? [] : ['required']),
...(props?.field_type === 'static_text' ? [] : ['required']),
],
},
],
Expand Down

0 comments on commit e03df2e

Please sign in to comment.