diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-15 22:46:19 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-15 22:46:19 -0400 |
| commit | 7d2d10747fec2d3377004bf6df7e95d7661e27f6 (patch) | |
| tree | 8b818e9947700937aa979eb31fd489ee322c2b5d /src/client/views/pdf/Annotation.tsx | |
| parent | d11bee7e5e25240d37827c5369e45e551d22eafe (diff) | |
fixed some warnings
Diffstat (limited to 'src/client/views/pdf/Annotation.tsx')
| -rw-r--r-- | src/client/views/pdf/Annotation.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/pdf/Annotation.tsx b/src/client/views/pdf/Annotation.tsx index 78438e7e3..f680a00df 100644 --- a/src/client/views/pdf/Annotation.tsx +++ b/src/client/views/pdf/Annotation.tsx @@ -4,7 +4,7 @@ import { observer } from "mobx-react"; import { Doc, DocListCast, HeightSym, WidthSym } from "../../../fields/Doc"; import { Id } from "../../../fields/FieldSymbols"; import { List } from "../../../fields/List"; -import { Cast, FieldValue, NumCast, StrCast, PromiseValue } from "../../../fields/Types"; +import { Cast, FieldValue, BoolCast, NumCast, StrCast, PromiseValue } from "../../../fields/Types"; import { DocumentManager } from "../../util/DocumentManager"; import { PDFMenu } from "./PDFMenu"; import "./Annotation.scss"; @@ -91,9 +91,9 @@ class RegionAnnotation extends React.Component<IRegionAnnotationProps> { makePushpin = action(() => { const group = Cast(this.props.document.group, Doc, null); group.isPushpin = !group.isPushpin; - }) + }); - isPushpin = () => Cast(this.props.document.group, Doc, null).isPushpin; + isPushpin = () => BoolCast(Cast(this.props.document.group, Doc, null).isPushpin); @action onPointerDown = (e: React.PointerEvent) => { |
