From 8dd21e55929ec1968cf89ec9fcb36ac930513e02 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Thu, 26 Sep 2024 17:06:51 +0100 Subject: [PATCH] Wider check on fields == null. --- packages/server/src/sdk/app/rows/queryUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/sdk/app/rows/queryUtils.ts b/packages/server/src/sdk/app/rows/queryUtils.ts index a88763215e..7ef776a989 100644 --- a/packages/server/src/sdk/app/rows/queryUtils.ts +++ b/packages/server/src/sdk/app/rows/queryUtils.ts @@ -110,7 +110,7 @@ export const getQueryableFields = async ( "_id", // Querying by _id is always allowed, even if it's never part of the schema ] - if (fields === undefined) { + if (fields == null) { fields = Object.keys(table.schema) } result.push(...(await extractTableFields(table, fields, [table._id!])))