diff --git a/src/backend/model/database/sql/SearchManager.ts b/src/backend/model/database/sql/SearchManager.ts index 8aae1a1d..d48612ac 100644 --- a/src/backend/model/database/sql/SearchManager.ts +++ b/src/backend/model/database/sql/SearchManager.ts @@ -856,7 +856,7 @@ export class SearchManager implements ISQLSearchManager { } as ORSearchQuery); } - if (someOfQ.min === (query as SearchListQuery).list.length) { + if (someOfQ.min === ((query as SearchListQuery).list || []).length) { return this.flattenSameOfQueries({ type: SearchQueryTypes.AND, list: (someOfQ as SearchListQuery).list,