Avoid throwing forbidden on non accessible resources and return an empty response for those

This commit is contained in:
carlosmonastyrski
2025-03-19 15:30:05 -03:00
parent f6425480ca
commit af236ba892
2 changed files with 28 additions and 6 deletions
@@ -167,7 +167,6 @@ export const useGetImportedSecretsAllEnvs = ({
select: useCallback(
(data: Awaited<ReturnType<typeof fetchImportedSecrets>>) =>
data.map((el) => ({
currentEnv: env,
environment: el.environment,
secretPath: el.secretPath,
environmentInfo: el.environmentInfo,