mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 15:27:27 +00:00
Fix type issue on buildFolderPath
This commit is contained in:
@@ -5,7 +5,7 @@ export const buildFolderPath = (
|
|||||||
foldersMap: Record<string, TSecretFolders>,
|
foldersMap: Record<string, TSecretFolders>,
|
||||||
depth: number = 0
|
depth: number = 0
|
||||||
): string => {
|
): string => {
|
||||||
if (depth > 20) return;
|
if (depth > 20) return "";
|
||||||
if (!folder.parentId) {
|
if (!folder.parentId) {
|
||||||
return depth === 0 ? "/" : "";
|
return depth === 0 ? "/" : "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user