diff options
author | bobzel <zzzman@gmail.com> | 2020-08-05 17:15:02 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-05 17:15:02 -0400 |
commit | d254d35d8d1fc10e9ca7ef5b9db06cd138b2d102 (patch) | |
tree | f006424685a8971cc430a1eb9afb4483465a5d64 /src/client/views/nodes/WebBox.tsx | |
parent | a9fbb81375d3e97b808d2cb90e68c9716ee916b7 (diff) | |
parent | 201da4ecf5c91595dc1c7fb51e360bb75af613f8 (diff) |
Merge branch 'schema_search'
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; } |