mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
fix: issues related to PUT operations
This commit is contained in:
@@ -41,7 +41,7 @@ export function useEditProjectTask(props) {
|
||||
const queryClient = useQueryClient();
|
||||
const apiRequest = useApiRequest();
|
||||
|
||||
return useMutation(([id, values]) => apiRequest.post(`tasks/${id}`, values), {
|
||||
return useMutation(([id, values]) => apiRequest.put(`tasks/${id}`, values), {
|
||||
onSuccess: (res, [id, values]) => {
|
||||
// Common invalidate queries.
|
||||
commonInvalidateQueries(queryClient);
|
||||
|
||||
Reference in New Issue
Block a user