Revert change to view error message

This commit is contained in:
Andrew Kingston 2024-10-24 10:27:41 +01:00
parent d7ad035e0b
commit 687996257f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export function ensureQueryUISet(viewArg: Readonly<ViewV2>): ViewV2 {
// So despite the type saying that `view.query` is a LegacyFilter[] |
// SearchFilters, it will never be a SearchFilters when a `view.queryUI`
// is specified, making it "safe" to throw an error here.
throw new HTTPError(`View ${view.name} is missing queryUI field`, 400)
throw new HTTPError("view is missing queryUI field", 400)
}
view.queryUI = utils.processSearchFilters(view.query)