diff options
author | anika <anika.ahluwalia@gmail.com> | 2021-01-28 09:21:12 -0500 |
---|---|---|
committer | anika <anika.ahluwalia@gmail.com> | 2021-01-28 09:21:12 -0500 |
commit | 35e1b844c23b0f78ead7ab00ffec16c8c6460229 (patch) | |
tree | d2d9dcd87ca62cca4a02db0b55a5fe307a2926b9 /src/client/views/DocComponent.tsx | |
parent | 5b0a4a154a6e68139d3d7e462ca421d3fbbdd224 (diff) | |
parent | 17bd18fd01d8b1f7fbef11d42651932d251cacc7 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into filters
Diffstat (limited to 'src/client/views/DocComponent.tsx')
-rw-r--r-- | src/client/views/DocComponent.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx index 8d545c61b..99f13295d 100644 --- a/src/client/views/DocComponent.tsx +++ b/src/client/views/DocComponent.tsx @@ -131,7 +131,10 @@ export function ViewBoxAnnotatableComponent<P extends ViewBoxAnnotatableProps, T const docs = indocs.filter(doc => effectiveAcl === AclEdit || effectiveAcl === AclAdmin || GetEffectiveAcl(doc) === AclAdmin); if (docs.length) { const docs = doc instanceof Doc ? [doc] : doc; - docs.map(doc => doc.isPushpin = doc.annotationOn = undefined); + docs.map(doc => { + Doc.SetInPlace(doc, "isPushpin", undefined, true); + Doc.SetInPlace(doc, "annotationOn", undefined, true); + }); const targetDataDoc = this.dataDoc; const value = DocListCast(targetDataDoc[annotationKey ?? this.annotationKey]); const toRemove = value.filter(v => docs.includes(v)); |