From 08d77b4333619e9f1f72c8f9079e9fa268efb225 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:29:55 +1300 Subject: [PATCH] fix(namespace): handle no accesses found [r8s-141] (#106) --- app/react/kubernetes/configs/queries/useConfigMap.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/react/kubernetes/configs/queries/useConfigMap.ts b/app/react/kubernetes/configs/queries/useConfigMap.ts index e7937d328..d1007f5d6 100644 --- a/app/react/kubernetes/configs/queries/useConfigMap.ts +++ b/app/react/kubernetes/configs/queries/useConfigMap.ts @@ -1,6 +1,5 @@ import { useQuery } from '@tanstack/react-query'; -import { withGlobalError } from '@/react-tools/react-query'; import axios, { parseAxiosError } from '@/portainer/services/axios'; import { EnvironmentId } from '@/react/portainer/environments/types'; @@ -26,7 +25,7 @@ export function useConfigMap( select: options?.select, enabled: options?.enabled, refetchInterval: () => options?.autoRefreshRate ?? false, - ...withGlobalError(`Unable to retrieve ConfigMap '${configMap}'`), + // handle error from the callers (some callers shouldn't display an error) } ); }