Skip to content

Commit

Permalink
Remove individual field header
Browse files Browse the repository at this point in the history
  • Loading branch information
louwie17 committed Sep 20, 2024
1 parent 9d44c79 commit aae0488
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,11 @@ function DataFormCombinedEdit< Item >( {
const children = visibleChildren.map( ( child, index ) => {
return (
<div className="dataforms-combined-edit__field" key={ child.id }>
{ index !== 0 && hideLabelFromVision && (
<Header title={ child.label } />
) }
<child.Edit
data={ data }
field={ child }
onChange={ onChange }
hideLabelFromVision={ hideLabelFromVision }
hideLabelFromVision={ hideLabelFromVision && index === 0 }
/>
</div>
);
Expand Down

0 comments on commit aae0488

Please sign in to comment.