From fdca0a903ce1ae2c8e06058df135715bae07bbec Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 7 Apr 2021 11:56:44 +0200 Subject: [PATCH] do not display name fields --- packages/dashboard/src/components/Form/SelfServiceForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard/src/components/Form/SelfServiceForm.js b/packages/dashboard/src/components/Form/SelfServiceForm.js index d7183a4a..d84fc1c2 100644 --- a/packages/dashboard/src/components/Form/SelfServiceForm.js +++ b/packages/dashboard/src/components/Form/SelfServiceForm.js @@ -4,7 +4,7 @@ import SelfServiceMessages from "./SelfServiceMessages"; export default function SelfServiceForm({ flow, config, fieldsConfig, title, button = "Submit" }) { const fields = config.fields - .filter((field) => field.name.startsWith("traits.name")) + .filter((field) => !field.name.startsWith("traits.name")) // drop name fields .map((field) => ({ ...field, ...fieldsConfig[field.name] })) .sort((a, b) => (a.position < b.position ? -1 : 1)); const formik = useFormik({