From 9eb4669477eb03fb404b11eec41e09a93ec15425 Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 19 May 2025 10:32:35 -0400 Subject: fix crash from last. --- src/client/util/SearchUtil.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/util/SearchUtil.ts b/src/client/util/SearchUtil.ts index 17c4af9d1..2f23d07dc 100644 --- a/src/client/util/SearchUtil.ts +++ b/src/client/util/SearchUtil.ts @@ -59,9 +59,9 @@ export namespace SearchUtil { * An array of all field names used by the Doc or its prototypes. */ export function documentKeys(doc: Doc) { - return Object.keys(Doc.GetAllPrototypes(doc).reduce( + return Object.keys(Doc.GetAllPrototypes(doc).filter(proto => proto).reduce( (keys, proto) => { - Object.keys(proto).forEach(keys.add); + Object.keys(proto).forEach(keys.add.bind(keys)); return keys; }, new Set())); // prettier-ignore -- cgit v1.2.3-70-g09d2