From a82da51b30a79b2974d4b9943b4476be1c32a91d Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Thu, 13 Jun 2024 12:34:22 +0100 Subject: [PATCH] Down to 60 failures. --- packages/shared-core/src/filters.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/shared-core/src/filters.ts b/packages/shared-core/src/filters.ts index 43c99c8374..0b452c8cb8 100644 --- a/packages/shared-core/src/filters.ts +++ b/packages/shared-core/src/filters.ts @@ -381,7 +381,11 @@ export const runQuery = ( return false } - if (typeof docValue === "object" && typeof testValue === "string") { + if ( + docValue && + typeof docValue === "object" && + typeof testValue === "string" + ) { return docValue._id === testValue }