Skip to content

Commit

Permalink
Use pessimistic mode for bulk delete (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Jul 30, 2023
1 parent aabcea7 commit 349df58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin-js/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const AiohttpList = (resource, name, permissions) => {
<>
{hasPermission(`${name}.edit`, permissions) && createBulkUpdates(resource, name, permissions)}
<BulkExportButton />
{hasPermission(`${name}.delete`, permissions) && <BulkDeleteButton />}
{hasPermission(`${name}.delete`, permissions) && <BulkDeleteButton mutationMode="pessimistic" />}
</>
);

Expand Down

0 comments on commit 349df58

Please sign in to comment.