diff options
author | kimdahey <claire_kim1@brown.edu> | 2019-11-12 16:09:38 -0500 |
---|---|---|
committer | kimdahey <claire_kim1@brown.edu> | 2019-11-12 16:09:38 -0500 |
commit | 190ab79a986981580d39fcf42b0875f76876fccc (patch) | |
tree | 9fe613d248859bf06423271e831c090d7d3d7eb2 /src/client/views/pdf/Annotation.tsx | |
parent | 461af95c312fc7aff85551c014fb93dc7a89cecd (diff) | |
parent | ecbe527575bab2cb5f1ced278039ec0a6fc50809 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into claire_settings
Diffstat (limited to 'src/client/views/pdf/Annotation.tsx')
-rw-r--r-- | src/client/views/pdf/Annotation.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/views/pdf/Annotation.tsx b/src/client/views/pdf/Annotation.tsx index 2d8f47666..936af9ab8 100644 --- a/src/client/views/pdf/Annotation.tsx +++ b/src/client/views/pdf/Annotation.tsx @@ -52,11 +52,7 @@ class RegionAnnotation extends React.Component<IRegionAnnotationProps> { this._brushDisposer = reaction( () => FieldValue(Cast(this.props.document.group, Doc)) && Doc.isBrushedHighlightedDegree(FieldValue(Cast(this.props.document.group, Doc))!), - (brushed) => { - if (brushed !== undefined) { - runInAction(() => this._brushed = brushed !== 0); - } - } + brushed => brushed !== undefined && runInAction(() => this._brushed = brushed !== 0) ); } |