Skip to content

Commit

Permalink
Merge pull request #2662 from BartoGabriel/DeleteButtonUndoable
Browse files Browse the repository at this point in the history
Fix DeleteButton undoable={false} in List does not refresh List
  • Loading branch information
fzaninotto authored Jan 28, 2019
2 parents 8c1aed0 + 557641e commit 4b51e9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ra-core/src/actions/dataActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ export const crudDelete = (
id,
previousData,
basePath,
redirectTo = 'list'
redirectTo = 'list',
refresh = true
) => ({
type: CRUD_DELETE,
payload: { id, previousData },
Expand All @@ -212,6 +213,7 @@ export const crudDelete = (
smart_count: 1,
},
},
refresh,
redirectTo,
basePath,
},
Expand Down

0 comments on commit 4b51e9c

Please sign in to comment.