drop all traits.name fields
This commit is contained in:
parent
2c1150ff80
commit
3373ce8424
|
@ -4,6 +4,7 @@ import SelfServiceMessages from "./SelfServiceMessages";
|
||||||
|
|
||||||
export default function SelfServiceForm({ flow, config, fieldsConfig, title, button = "Submit" }) {
|
export default function SelfServiceForm({ flow, config, fieldsConfig, title, button = "Submit" }) {
|
||||||
const fields = config.fields
|
const fields = config.fields
|
||||||
|
.filter((field) => field.name.startsWith("traits.name"))
|
||||||
.map((field) => ({ ...field, ...fieldsConfig[field.name] }))
|
.map((field) => ({ ...field, ...fieldsConfig[field.name] }))
|
||||||
.sort((a, b) => (a.position < b.position ? -1 : 1));
|
.sort((a, b) => (a.position < b.position ? -1 : 1));
|
||||||
const formik = useFormik({
|
const formik = useFormik({
|
||||||
|
|
Reference in New Issue