diff --git a/packages/dataviews/src/dataforms-layouts/data-form-layout.tsx b/packages/dataviews/src/dataforms-layouts/data-form-layout.tsx index 2afa7933c8934..55542d434cb7a 100644 --- a/packages/dataviews/src/dataforms-layouts/data-form-layout.tsx +++ b/packages/dataviews/src/dataforms-layouts/data-form-layout.tsx @@ -28,7 +28,7 @@ function doesCombinedFieldSupportBulkEdits< Item >( return fieldDefinitions.find( ( fieldDefinition ) => fieldDefinition.id === fieldId - )?.supportsBulk; + )?.supportsBulkEditing; } ); } @@ -97,7 +97,8 @@ export function DataFormLayout< Item extends object >( { formField, fieldDefinitions ) ) || - ( fieldDefinition && ! fieldDefinition.supportsBulk ) ) + ( fieldDefinition && + ! fieldDefinition.supportsBulkEditing ) ) ) { return null; } diff --git a/packages/dataviews/src/normalize-fields.ts b/packages/dataviews/src/normalize-fields.ts index 64c86bd4d0f80..6fe06f6de55f3 100644 --- a/packages/dataviews/src/normalize-fields.ts +++ b/packages/dataviews/src/normalize-fields.ts @@ -66,8 +66,8 @@ export function normalizeFields< Item >( let supportsBulk = true; // If custom Edit component is passed in we default to false for bulk edit support. - if ( typeof field.Edit === 'function' || field.supportsBulk ) { - supportsBulk = field.supportsBulk ?? false; + if ( typeof field.Edit === 'function' || field.supportsBulkEditing ) { + supportsBulk = field.supportsBulkEditing ?? false; } const render = diff --git a/packages/dataviews/src/types.ts b/packages/dataviews/src/types.ts index 71c8806548eaa..b05e13ae5dffc 100644 --- a/packages/dataviews/src/types.ts +++ b/packages/dataviews/src/types.ts @@ -160,9 +160,9 @@ export type Field< Item > = { getValue?: ( args: { item: Item } ) => any; /** - * Whether the action can be used as a bulk action. + * Whether the field supports bulk editing. */ - supportsBulk?: boolean; + supportsBulkEditing?: boolean; }; export type NormalizedField< Item > = Field< Item > & {