Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

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.tsx
index 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;