mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
fix: issues related to PUT operations
This commit is contained in:
@@ -111,7 +111,7 @@ export function useEditPaymentReceive(props) {
|
||||
const apiRequest = useApiRequest();
|
||||
|
||||
return useMutation(
|
||||
([id, values]) => apiRequest.post(`payments-received/${id}`, values),
|
||||
([id, values]) => apiRequest.put(`payments-received/${id}`, values),
|
||||
{
|
||||
onSuccess: (data, [id, values]) => {
|
||||
// Invalidate specific payment receive.
|
||||
|
||||
Reference in New Issue
Block a user