mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
Merge branch 'feature/react-query' of https://github.com/abouolia/Ratteb into feature/react-query
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user