mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
fix(namespace): handle no accesses found [r8s-141] (#106)
This commit is contained in:
parent
1ead121c9b
commit
08d77b4333
1 changed files with 1 additions and 2 deletions
|
@ -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<T = Configuration>(
|
|||
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)
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue