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:
@@ -77,7 +77,7 @@ export function useEditVendorCredit(props) {
|
||||
const apiRequest = useApiRequest();
|
||||
|
||||
return useMutation(
|
||||
([id, values]) => apiRequest.post(`vendor-credits/${id}`, values),
|
||||
([id, values]) => apiRequest.put(`vendor-credits/${id}`, values),
|
||||
{
|
||||
onSuccess: (res, [id, values]) => {
|
||||
// Common invalidate queries.
|
||||
|
||||
Reference in New Issue
Block a user