From 3373ce84243fe15cc582e158397cad4417fd40c3 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 6 Apr 2021 16:56:51 +0200 Subject: [PATCH] drop all traits.name fields --- packages/dashboard/src/components/Form/SelfServiceForm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/dashboard/src/components/Form/SelfServiceForm.js b/packages/dashboard/src/components/Form/SelfServiceForm.js index e00f27ac..d7183a4a 100644 --- a/packages/dashboard/src/components/Form/SelfServiceForm.js +++ b/packages/dashboard/src/components/Form/SelfServiceForm.js @@ -4,6 +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")) .map((field) => ({ ...field, ...fieldsConfig[field.name] })) .sort((a, b) => (a.position < b.position ? -1 : 1)); const formik = useFormik({