chore(react-query): update all deprecated withError to use withGlobalError [R8S-968] (#2461)

Co-authored-by: Ali <83188384+testA113@users.noreply.github.com>
This commit is contained in:
nickl-portainer
2026-04-24 16:01:59 +12:00
committed by GitHub
parent 2c2ec6f6e6
commit 5eaf145eda
126 changed files with 259 additions and 278 deletions
@@ -6,12 +6,12 @@ import { AccessControlFormData } from '@/react/portainer/access-control/types';
import axios from '@/portainer/services/axios/axios';
import { buildStackUrl } from '@/react/common/stacks/queries/buildUrl';
import { Stack } from '@/react/common/stacks/types';
import { withGlobalError } from '@/react-tools/react-query';
import { withError } from '@/react-tools/react-query';
export function useAssociateStackToEnvironmentMutation() {
return useMutation({
mutationFn: associateStackToEnvironmentMutation,
...withGlobalError('Failed to associate stack to environment'),
...withError('Failed to associate stack to environment'),
});
}