diff --git a/packages/server/src/api/controllers/row/views.ts b/packages/server/src/api/controllers/row/views.ts index bcf9c6b441..16d0f0205d 100644 --- a/packages/server/src/api/controllers/row/views.ts +++ b/packages/server/src/api/controllers/row/views.ts @@ -57,10 +57,9 @@ export async function searchView( } }) }) - } else { - const operator = query.allOr ? "$or" : "$and" + } else query = { - [operator]: { + $and: { conditions: [query, body.query], }, }