fix: ensure we handle undefined values when indexing

This commit is contained in:
Andy Burke 2025-09-21 17:16:50 -07:00
parent 36bb9c6a87
commit d4c862824d
3 changed files with 25 additions and 18 deletions

View file

@ -170,11 +170,12 @@ export class FSDB_INDEXER_SYMLINKS<T> implements FSDB_INDEXER<T> {
const results: string[] = [];
const values: string[] = this.get_values_to_index(item);
if (values.length === 0) {
return results;
}
for (const value of values) {
if (typeof value === 'undefined') {
continue;
}
const organized_paths: string[] = this.config.organize(value);
if (organized_paths.length === 0) {
continue;