From deabccccd682f9c077ccb9166a66aa73a2b99008 Mon Sep 17 00:00:00 2001 From: MarekBodingerBA <104828482+MarekBodingerBA@users.noreply.github.com> Date: Mon, 9 Sep 2024 10:48:08 +0200 Subject: [PATCH] Remove schema.title display in BAObjectFieldTemplate (#1364) Co-authored-by: Marek Bodinger --- .../forms/widget-wrappers/BAObjectFieldTemplate.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/next/components/forms/widget-wrappers/BAObjectFieldTemplate.tsx b/next/components/forms/widget-wrappers/BAObjectFieldTemplate.tsx index a1b0d9450..f938d58d9 100644 --- a/next/components/forms/widget-wrappers/BAObjectFieldTemplate.tsx +++ b/next/components/forms/widget-wrappers/BAObjectFieldTemplate.tsx @@ -48,12 +48,7 @@ const ColumnDisplay = ({ * This implementation removes `TitleFieldTemplate` and `DescriptionFieldTemplate` from the * implementation and displays them directly. */ -const BAObjectFieldTemplate = ({ - idSchema, - properties, - schema, - uiSchema, -}: ObjectFieldTemplateProps) => { +const BAObjectFieldTemplate = ({ idSchema, properties, uiSchema }: ObjectFieldTemplateProps) => { const options = getUiOptions(uiSchema) as ObjectFieldUiOptions const defaultSpacing = { wrapper: {}, @@ -67,7 +62,6 @@ const BAObjectFieldTemplate = ({ return (
- {schema.title &&

{schema.title}

} {options.title &&

{options.title}

} {options.description && (