Fix select all (#9337)

There was a bug when selecting all records on the index page.
This was due to the fact that
`WorkflowRunRecordActionMenuEntrySetterEffect` was mounted when it
shouldn't have been.
This commit is contained in:
Raphaël Bosi
2025-01-03 15:13:51 +01:00
committed by GitHub
parent 9da0a5df6f
commit 03b1da82c1

View File

@ -73,10 +73,8 @@ export const RecordActionMenuEntriesSetter = () => {
))}
{isWorkflowEnabled &&
!(
contextStoreTargetedRecordsRule?.mode === 'selection' &&
contextStoreTargetedRecordsRule?.selectedRecordIds.length === 0
) && (
contextStoreTargetedRecordsRule?.mode === 'selection' &&
contextStoreTargetedRecordsRule?.selectedRecordIds.length === 1 && (
<WorkflowRunRecordActionMenuEntrySetterEffect
objectMetadataItem={objectMetadataItem}
/>