Make sure you can still create views with a query but no queryUI

This commit is contained in:
Sam Rose 2024-10-21 11:30:28 +01:00
parent 0c6afda606
commit 064721cefa
No known key found for this signature in database
2 changed files with 15 additions and 0 deletions

View File

@ -253,6 +253,20 @@ describe.each([
visible: true,
},
},
queryUI: {
groups: [
{
logicalOperator: UILogicalOperator.ALL,
filters: [
{
operator: BasicOperator.EQUAL,
field: "field",
value: "value",
},
],
},
],
},
id: expect.any(String),
version: 2,
}

View File

@ -50,6 +50,7 @@ export async function create(
}
ensureQuerySet(view)
ensureQueryUISet(view)
const db = context.getAppDB()