diff options
| author | bobzel <zzzman@gmail.com> | 2023-06-29 14:59:29 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-06-29 14:59:29 -0400 |
| commit | c99238c8b1e027099b2cd3f4b31b4c0b06d488d0 (patch) | |
| tree | 15a2853d6799f6c208a6cb234ea95e8d5740decf /src/client/documents/Documents.ts | |
| parent | e0dcbdbb9a2eaf0bd39ccdaa73e23506ea93984a (diff) | |
made recording annotation undoable. fixed doc filters for dates, change filter to use :: instead of :
Diffstat (limited to 'src/client/documents/Documents.ts')
| -rw-r--r-- | src/client/documents/Documents.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index acd323eca..00864c6fd 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -1213,7 +1213,7 @@ export namespace DocUtils { const filterFacets: { [key: string]: { [value: string]: string } } = {}; // maps each filter key to an object with value=>modifier fields childFilters.forEach(filter => { - const fields = filter.split(':'); + const fields = filter.split(Doc.FilterSep); const key = fields[0]; const value = fields[1]; const modifiers = fields[2]; @@ -1231,7 +1231,7 @@ export namespace DocUtils { return false; } - for (const facetKey of Object.keys(filterFacets).filter(fkey => fkey !== 'cookies' && fkey !== Utils.noDragsDocFilter.split(':')[0])) { + for (const facetKey of Object.keys(filterFacets).filter(fkey => fkey !== 'cookies' && fkey !== Utils.noDragsDocFilter.split(Doc.FilterSep)[0])) { const facet = filterFacets[facetKey]; // facets that match some value in the field of the document (e.g. some text field) |
