mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
fix: issues related to PUT operations
This commit is contained in:
@@ -91,7 +91,7 @@ export function useEditAccount(props) {
|
||||
const apiRequest = useApiRequest();
|
||||
|
||||
return useMutation(
|
||||
([id, values]) => apiRequest.post(`accounts/${id}`, values),
|
||||
([id, values]) => apiRequest.put(`accounts/${id}`, values),
|
||||
{
|
||||
onSuccess: () => {
|
||||
// Common invalidate queries.
|
||||
|
||||
Reference in New Issue
Block a user