Fix: Improved UI import indicators

This commit is contained in:
Daniel Hougaard
2024-03-21 03:06:14 +01:00
parent 36adf6863b
commit 609ce8e5cc
6 changed files with 52 additions and 33 deletions
@@ -269,8 +269,8 @@ export const useGetImportedSecretsAllEnvs = ({
if (selectedEnvIndex !== -1) {
const isPresent = secretImports?.[selectedEnvIndex]?.data?.find(
({ secretPath, ...rest }) =>
secretPath === secPath && rest.secrets.some((s) => s.key === secretName)
({ secretPath, secrets }) =>
secretPath === secPath && secrets.some((s) => s.key === secretName)
);
return Boolean(isPresent);