diff --git a/src/services/distill-service.ts b/src/services/distill-service.ts index b98470d..ffc2d83 100644 --- a/src/services/distill-service.ts +++ b/src/services/distill-service.ts @@ -202,7 +202,7 @@ export class DistillService { if (file instanceof TFile) { // Avoid duplicate files - if (!files.some(existingFile => existingFile.path === file.path)) { + if (!files.some(existingFile => existingFile.path === file!.path)) { files.push(file); } }