Merge pull request #69 from hoborm/bugfix/deleted-task-view-no-update
Fix chore list view doesn't update when chore is deleted.
This commit is contained in:
@@ -259,6 +259,7 @@ export const useChoreActions = ({
|
||||
c => c.id !== chore.id,
|
||||
)
|
||||
setChores(newChores)
|
||||
updateChoreInState(chore.id, 'deleted')
|
||||
setFilteredChores(newFilteredChores)
|
||||
showSuccess({
|
||||
title: 'Task Deleted',
|
||||
|
||||
Reference in New Issue
Block a user