mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix:create customer/vendor
This commit is contained in:
@@ -55,7 +55,7 @@ export function useEditVendor(props) {
|
||||
const apiRequest = useApiRequest();
|
||||
|
||||
return useMutation(
|
||||
([id, values]) => apiRequest.post(`vendors/${id}`, values),
|
||||
([id, values]) => apiRequest.put(`vendors/${id}`, values),
|
||||
{
|
||||
onSuccess: (res, [id, values]) => {
|
||||
// Invalidate specific vendor.
|
||||
|
||||
Reference in New Issue
Block a user