Skip to content

Commit

Permalink
fix: use string for field_type (#64)
Browse files Browse the repository at this point in the history
* Use string for field_type

* fix code style

* basic prettier config

---------

Co-authored-by: Piero Nicolli <piero.nicolli@redturtle.it>
  • Loading branch information
JeffersonBledsoe and pnicolli committed May 29, 2023
1 parent d826895 commit f031914
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"pre-commit": "lint-staged"
}
},
"prettier": {
"singleQuote": true,
"trailingComma": "all"
},
"dependencies": {
"@hcaptcha/react-hcaptcha": "^0.3.6",
"file-saver": "^2.0.5",
Expand Down
2 changes: 1 addition & 1 deletion src/fieldSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default (props) => {
},
field_type: {
title: intl.formatMessage(messages.field_type),
type: 'array',
type: 'string',
choices: [
...baseFieldTypeChoices,
...(config.blocks.blocksConfig.form.additionalFields?.map(
Expand Down

0 comments on commit f031914

Please sign in to comment.