Skip to content

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

fix: ts issue

Daniel Hougaard527a727c1cee
diff --git a/backend/src/services/secret-folder/secret-folder-service.ts b/backend/src/services/secret-folder/secret-folder-service.ts
index 462a844f11..e06cfcb01d 100644
--- a/backend/src/services/secret-folder/secret-folder-service.ts
+++ b/backend/src/services/secret-folder/secret-folder-service.ts
@@ -519,7 +519,7 @@ export const secretFolderServiceFactory = ({
}
// Find the target folder in the folderPaths to get its full details
- const targetFolderWithPath = folderPaths.find((f) => f.id === targetFolder.id);
+ const targetFolderWithPath = folderPaths.find((f) => f.id === targetFolder!.id);
if (!targetFolderWithPath) {
throw new NotFoundError({ message: `Target folder path not found` });
}