Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Fix getImportReplicatedFolder function to retrieve only the id part of it
Carlos Monastyrski5887b64a9e40
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretImportListView/SecretImportListView.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretImportListView/SecretImportListView.tsxindex be492f4949..2dbc95020e 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretImportListView/SecretImportListView.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretImportListView/SecretImportListView.tsx@@ -130,7 +130,8 @@ export const SecretImportListView = ({const [items, setItems] = useState(secretImports ?? []);const getImportReplicatedFolder = (importPath: string) => {- const cleanImportPath = importPath.replace("/__reserve_replication_", "");+ if (!importPath.includes("/__reserve_replication_")) return;+ const cleanImportPath = importPath.split("/__reserve_replication_")[1];const replicatedFolder = items?.find(({ id }) => id === cleanImportPath);return replicatedFolder;};