fix: ts issue

This commit is contained in:
Daniel Hougaard
2025-07-03 03:28:21 +04:00
parent 0139064aaa
commit 527a727c1c
@@ -519,7 +519,7 @@ export const secretFolderServiceFactory = ({
} }
// Find the target folder in the folderPaths to get its full details // 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) { if (!targetFolderWithPath) {
throw new NotFoundError({ message: `Target folder path not found` }); throw new NotFoundError({ message: `Target folder path not found` });
} }