fix(core): fix broken search (#2488)

This commit is contained in:
Bartholomew 2019-07-24 20:29:37 +01:00 committed by Shawn Erquhart
parent 2831123dec
commit 326ed4dc3f

View File

@ -386,7 +386,7 @@ export class Backend {
} }
return elem; return elem;
}), }),
]; ].filter(Boolean);
const collectionEntries = await this.listAllEntries(collection); const collectionEntries = await this.listAllEntries(collection);
return fuzzy.filter(searchTerm, collectionEntries, { return fuzzy.filter(searchTerm, collectionEntries, {
extract: extractSearchFields(uniq(searchFields)), extract: extractSearchFields(uniq(searchFields)),