mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
fix: issues related to PUT operations
This commit is contained in:
@@ -45,7 +45,7 @@ export function useEditWarehouseTransfer(props) {
|
||||
const apiRequest = useApiRequest();
|
||||
|
||||
return useMutation(
|
||||
([id, values]) => apiRequest.post(`warehouse-transfers/${id}`, values),
|
||||
([id, values]) => apiRequest.put(`warehouse-transfers/${id}`, values),
|
||||
{
|
||||
onSuccess: (res, [id, values]) => {
|
||||
// Invalidate specific sale invoice.
|
||||
|
||||
Reference in New Issue
Block a user