mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Fixing missing list error
This commit is contained in:
parent
9fdd732ce5
commit
974182e810
@ -841,7 +841,7 @@ export class SearchManager implements ISQLSearchManager {
|
||||
case SearchQueryTypes.OR:
|
||||
return {
|
||||
type: query.type,
|
||||
list: (query as SearchListQuery).list.map(
|
||||
list: ((query as SearchListQuery).list || []).map(
|
||||
(q): SearchQueryDTO => this.flattenSameOfQueries(q)
|
||||
),
|
||||
} as SearchListQuery;
|
||||
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user