fix: ensure we handle undefined values when indexing
This commit is contained in:
parent
36bb9c6a87
commit
d4c862824d
3 changed files with 25 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue