Skip to content
This repository has been archived by the owner on Jan 2, 2022. It is now read-only.

Commit

Permalink
fix: wrong task time when switching the active task
Browse files Browse the repository at this point in the history
WDY-383
  • Loading branch information
jcmnunes committed Jul 16, 2020
1 parent ade940d commit 95549da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/features/day/api/useUpdateTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ export const useUpdateTask = () => {
});
},

// onSettled: (result, err, { body: { dayId } }) => {
// queryCache.invalidateQueries(['day', dayId]);
// queryCache.invalidateQueries('activeTask');
// queryCache.invalidateQueries('schedule');
// },
onSettled: (result, err, { body: { dayId } }) => {
queryCache.invalidateQueries(['day', dayId]);
queryCache.invalidateQueries('activeTask');
queryCache.invalidateQueries('schedule');
},
});
};

0 comments on commit 95549da

Please # to comment.