diff options
author | bobzel <zzzman@gmail.com> | 2025-05-19 10:32:35 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-05-19 10:32:35 -0400 |
commit | 9eb4669477eb03fb404b11eec41e09a93ec15425 (patch) | |
tree | 5cfa6456d85835b0ab67c1f09a1b9a038aa4fa5a | |
parent | cb2323bd828c564aa0847d6f172c452893f80098 (diff) |
fix crash from last.
-rw-r--r-- | src/client/util/SearchUtil.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<string>())); // prettier-ignore |