mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-22 01:19:13 +01:00
Add mutationKey everywhere
This commit is contained in:
@@ -7,6 +7,7 @@ import { environmentsQueryKey } from './useEnvironments';
|
||||
export function useUpdateEnvironment(id: string | null) {
|
||||
const queryClient = useQueryClient();
|
||||
return useMutation<void, unknown, Partial<Environment> | ((r: Environment) => Environment)>({
|
||||
mutationKey: ['update_environment', id],
|
||||
mutationFn: async (v) => {
|
||||
const environment = await getEnvironment(id);
|
||||
if (environment == null) {
|
||||
|
||||
Reference in New Issue
Block a user