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
Add default return on getImportReplicatedFolder
Carlos Monastyrskidf050096886e
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretImportListView/SecretImportListView.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretImportListView/SecretImportListView.tsxindex 2dbc95020e..ab4a968d96 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,7 @@ export const SecretImportListView = ({const [items, setItems] = useState(secretImports ?? []);const getImportReplicatedFolder = (importPath: string) => {- if (!importPath.includes("/__reserve_replication_")) return;+ if (!importPath.includes("/__reserve_replication_")) return importPath;const cleanImportPath = importPath.split("/__reserve_replication_")[1];const replicatedFolder = items?.find(({ id }) => id === cleanImportPath);return replicatedFolder;