diff options
author | bobzel <zzzman@gmail.com> | 2021-03-16 13:22:28 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-16 13:22:28 -0400 |
commit | d4738b172a1737395b73f5495446d3138d4045b9 (patch) | |
tree | 4fb53dd517dc7f13e9eb49ab1d5c287da535eff1 /src/fields/Doc.ts | |
parent | 5166e0af6be00274e82e8ae3b8019ac6c16685a0 (diff) |
fixed up leaving pushpins - leave pushpin when moving from one annotated doc to another.
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index e26d771d3..5a8b1097a 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1063,9 +1063,9 @@ export namespace Doc { // filters document in a container collection: // all documents with the specified value for the specified key are included/excluded // based on the modifiers :"check", "x", undefined - export function setDocFilter(target: Opt<Doc>, key: string, value: any, modifiers: "remove" | "match" | "check" | "x", toggle?: boolean, fieldSuffix?:string) { + export function setDocFilter(target: Opt<Doc>, key: string, value: any, modifiers: "remove" | "match" | "check" | "x", toggle?: boolean, fieldSuffix?: string) { const container = target ?? CollectionDockingView.Instance.props.Document; - const filterField = "_"+(fieldSuffix ? fieldSuffix+"-":"")+"docFilters"; + const filterField = "_" + (fieldSuffix ? fieldSuffix + "-" : "") + "docFilters"; const docFilters = Cast(container[filterField], listSpec("string"), []); runInAction(() => { for (let i = 0; i < docFilters.length; i++) { |