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,
|
c => c.id !== chore.id,
|
||||||
)
|
)
|
||||||
setChores(newChores)
|
setChores(newChores)
|
||||||
|
updateChoreInState(chore.id, 'deleted')
|
||||||
setFilteredChores(newFilteredChores)
|
setFilteredChores(newFilteredChores)
|
||||||
showSuccess({
|
showSuccess({
|
||||||
title: 'Task Deleted',
|
title: 'Task Deleted',
|
||||||
|
|||||||
Reference in New Issue
Block a user