diff options
author | bob <bcz@cs.brown.edu> | 2020-02-03 13:01:49 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-02-03 13:01:49 -0500 |
commit | 6b80df7d997fbde95b5571f790d9c0ed8e1950c4 (patch) | |
tree | 9015f3bb6e98adc60538b0e5400765297d696b41 /src/new_fields/Doc.ts | |
parent | 646de60fc314198b97172c62f414ffb9576ffb98 (diff) |
attempt at performance tuning.
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index 4f6f80775..2b700863e 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -777,7 +777,7 @@ export namespace Doc { } export function matchFieldValue(doc: Doc, key: string, value: any): boolean { - const fieldVal = doc[key] ? doc[key] : doc[key + "_ext"]; + const fieldVal = doc[key]; if (Cast(fieldVal, listSpec("string"), []).length) { const vals = Cast(fieldVal, listSpec("string"), []); return vals.some(v => v === value); |