mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 17:27:40 +00:00
fix: improve vault folders mapping
This commit is contained in:
@@ -254,9 +254,7 @@ export const transformToInfisicalFormatNamespaceToProjects = (
|
|||||||
let currentFolderId: string | undefined;
|
let currentFolderId: string | undefined;
|
||||||
let currentPath = "";
|
let currentPath = "";
|
||||||
|
|
||||||
if (path.includes("/")) {
|
|
||||||
const pathParts = path.split("/").filter(Boolean);
|
const pathParts = path.split("/").filter(Boolean);
|
||||||
|
|
||||||
const folderParts = pathParts;
|
const folderParts = pathParts;
|
||||||
|
|
||||||
// create nested folder structure for the entire path
|
// create nested folder structure for the entire path
|
||||||
@@ -278,7 +276,6 @@ export const transformToInfisicalFormatNamespaceToProjects = (
|
|||||||
currentFolderId = folderMap.get(folderKey)!;
|
currentFolderId = folderMap.get(folderKey)!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for (const [key, value] of Object.entries(secretData)) {
|
for (const [key, value] of Object.entries(secretData)) {
|
||||||
secrets.push({
|
secrets.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user