fix null file

This commit is contained in:
Chris Lettieri 2025-05-06 07:44:29 -04:00
parent 34eb234233
commit 9d4ea7df84

View file

@ -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);
}
}