diff options
author | bobzel <zzzman@gmail.com> | 2020-08-05 22:34:21 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-05 22:34:21 -0400 |
commit | 1a9750cb8c2102cf425137f47f08fb6f85cbdfa2 (patch) | |
tree | daca75216d265e69fc196813f5b3fc00f95d8d0c /src/client/views/nodes/WebBox.tsx | |
parent | cc905d329c88d7bdf9b7324a4f02ab92906ba7c8 (diff) | |
parent | af3e6b316f30c8154462145d15c38a2e48b53cdc (diff) |
Merge branch 'master' into presentation_updates
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r-- | src/client/views/nodes/WebBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index 646a94aa7..3283f568a 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -536,7 +536,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<FieldViewProps, WebDocum highlight = (color: string) => { // creates annotation documents for current highlights const effectiveAcl = GetEffectiveAcl(this.props.Document); - const annotationDoc = [AclAddonly, AclEdit, AclAdmin].includes(effectiveAcl) && this.makeAnnotationDocument(color); + const annotationDoc = [AclAddonly, AclEdit, AclAdmin].includes(effectiveAcl) ? this.makeAnnotationDocument(color) : undefined; annotationDoc && this.addDocument?.(annotationDoc); return annotationDoc ?? undefined; } |