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
@@ -9,7 +9,7 @@ import {
import { applyResourceControl } from '@/react/portainer/access-control/access-control.service';
import { AccessControlFormData } from '@/react/portainer/access-control/types';
import PortainerError from '@/portainer/error';
import { withGlobalError, withInvalidate } from '@/react-tools/react-query';
import { withError, withInvalidate } from '@/react-tools/react-query';
import { transformAutoUpdateViewModel } from '@/react/portainer/gitops/AutoUpdateFieldset/utils';
import { RegistryId } from '@/react/portainer/registries/types/registry';
@@ -28,7 +28,7 @@ import { createKubernetesStackFromFileContent } from './createKubernetesStackFro
export function useCreateStack() {
const queryClient = useQueryClient();
return useMutation(createStack, {
...withGlobalError('Failed to create stack'),
...withError('Failed to create stack'),
...withInvalidate(queryClient, [queryKeys.base()]),
});
}