Skip to content

Commit

Permalink
Remove field layout supportsBulk config
Browse files Browse the repository at this point in the history
  • Loading branch information
louwie17 committed Nov 27, 2024
1 parent 235bb55 commit 9680521
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 3 additions & 6 deletions packages/dataviews/src/dataforms-layouts/data-form-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,10 @@ export function DataFormLayout< Item extends object >( {
return (
<VStack spacing={ 2 }>
{ normalizedFormFields.map( ( formField ) => {
const formFieldLayout = getFormFieldLayout( formField.layout );
const FieldLayout = formFieldLayout?.component;
const FieldLayout = getFormFieldLayout( formField.layout )
?.component;

if (
! FieldLayout ||
( isBulkEditing && ! formFieldLayout?.supportsBulk )
) {
if ( ! FieldLayout ) {
return null;
}

Expand Down
2 changes: 0 additions & 2 deletions packages/dataviews/src/dataforms-layouts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ const FORM_FIELD_LAYOUTS = [
{
type: 'regular',
component: FormRegularField,
supportsBulk: true,
},
{
type: 'panel',
component: FormPanelField,
supportsBulk: true,
},
];

Expand Down

0 comments on commit 9680521

Please sign in to comment.