Fix type issue on buildFolderPath

This commit is contained in:
carlosmonastyrski
2025-03-27 16:45:33 -03:00
parent a5f198a3d5
commit 2f4c42482d

View File

@@ -5,7 +5,7 @@ export const buildFolderPath = (
foldersMap: Record<string, TSecretFolders>,
depth: number = 0
): string => {
if (depth > 20) return;
if (depth > 20) return "";
if (!folder.parentId) {
return depth === 0 ? "/" : "";
}