mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge pull request #4723 from Infisical/fix/getImportReplicatedFolder
Fix: getImportReplicatedFolder function now retrieve only the id of the replicated folder
This commit is contained in:
@@ -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 undefined;
|
||||
const cleanImportPath = importPath.split("/__reserve_replication_")[1];
|
||||
const replicatedFolder = items?.find(({ id }) => id === cleanImportPath);
|
||||
return replicatedFolder;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user