Merge branch 'feature/react-query' of https://github.com/abouolia/Ratteb into feature/react-query

This commit is contained in:
a.bouhuolia
2021-02-15 16:37:54 +02:00
3 changed files with 4 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ export function useEditAccount(props) {
const query = useQueryClient();
return useMutation(
([values, id]) => ApiService.post(`accounts/${id}`, values),
([id,values]) => ApiService.post(`accounts/${id}`, values),
{
onSuccess: () => {
query.invalidateQueries('ACCOUNTS');