diff options
author | bobzel <zzzman@gmail.com> | 2021-03-10 11:18:25 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-10 11:18:25 -0500 |
commit | 80597c4780b1e8833d3742339836815d388356d2 (patch) | |
tree | 69a6d462d2185559b94484ddee647e38e52ac105 /src/client/documents/Documents.ts | |
parent | 5fd9a0d6285d425363f820426d447343bc54f518 (diff) |
made initial load of filterbox much more efficient by preventing incremental invalidations. fixed display of sliderBox filters.
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index ac600af8b..357b82cd6 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -1043,8 +1043,9 @@ export namespace DocUtils { const min = Number(docRangeFilters[i + 1]); const max = Number(docRangeFilters[i + 2]); const val = Cast(d[key], "number", null); - if (val === undefined || (val < min || val > max)) { - return false; + if (val < min || val > max) return false; + if (val === undefined) { + console.log("Should 'undefined' pass range filter or not?") } } return true; |