Merge branch 'Infisical:main' into feature-codefresh-integration

This commit is contained in:
chisom okoye
2023-07-19 17:39:45 +01:00
committed by GitHub
3 changed files with 21 additions and 3 deletions
@@ -38,6 +38,11 @@ export const getAllImportedSecrets = async (
folderId: secPathFolder.id,
secretPath: el.secretPath
});
} else {
if (el.secretPath === "/") {
// this happens when importing with a fresh env without any folders
importedSecByFid.push({ environment: el.environment, folderId: "root", secretPath: "/" });
}
}
});
if (importedSecByFid.length === 0) return [];