From 687996257f6f2109b7a088031b1708d7c2709263 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 24 Oct 2024 10:27:41 +0100 Subject: [PATCH] Revert change to view error message --- packages/server/src/sdk/app/views/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/sdk/app/views/utils.ts b/packages/server/src/sdk/app/views/utils.ts index a0194b6d1b..8ca5fd1098 100644 --- a/packages/server/src/sdk/app/views/utils.ts +++ b/packages/server/src/sdk/app/views/utils.ts @@ -23,7 +23,7 @@ export function ensureQueryUISet(viewArg: Readonly): 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)