From 9c70ed92ba58094abba9b53d28a991f3e89db559 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 3 Oct 2024 14:47:31 +0100 Subject: [PATCH] Small build fix. --- packages/server/src/sdk/app/rows/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/sdk/app/rows/search.ts b/packages/server/src/sdk/app/rows/search.ts index 7e73a51889..1a15eb5839 100644 --- a/packages/server/src/sdk/app/rows/search.ts +++ b/packages/server/src/sdk/app/rows/search.ts @@ -92,7 +92,7 @@ export async function search( // Enrich saved query with ephemeral query params. // We prevent searching on any fields that are saved as part of the query, as // that could let users find rows they should not be allowed to access. - let viewQuery = dataFilters.buildQueryLegacy(view.query || []) + let viewQuery = dataFilters.buildQueryLegacy(view.query) || {} delete viewQuery?.onEmptyFilter const sqsEnabled = await features.flags.isEnabled("SQS")