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