From f03191430011c3f2554b68635c7cb1639f2aa061 Mon Sep 17 00:00:00 2001 From: Jefferson Bledsoe Date: Mon, 29 May 2023 11:51:50 +0100 Subject: [PATCH] fix: use string for field_type (#64) * Use string for field_type * fix code style * basic prettier config --------- Co-authored-by: Piero Nicolli --- package.json | 4 ++++ src/fieldSchema.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2e4aea6..4a5c33d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/fieldSchema.js b/src/fieldSchema.js index 95916b5..0e50d38 100644 --- a/src/fieldSchema.js +++ b/src/fieldSchema.js @@ -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(