aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PDFBox.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-06-26 12:56:22 -0400
committerbob <bcz@cs.brown.edu>2019-06-26 12:56:22 -0400
commit084dd6d9b0ad51133025ba6bd2702fc44b1b6c31 (patch)
tree323c734acf686a71ed78b10c336e8c0c25c2837d /src/client/views/nodes/PDFBox.tsx
parentf089dba7a271512bcebca2741f2f4f31243ffd47 (diff)
fixes to datadoc usage. fixed tree view for textboxes.
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r--src/client/views/nodes/PDFBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index f8bf5faf3..b863ee4fc 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -27,7 +27,7 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen
@observable private _alt = false;
@observable private _scrollY: number = 0;
- @computed get dataDoc() { return BoolCast(this.props.Document.isTemplate) ? this.props.DataDoc : this.props.Document; }
+ @computed get dataDoc() { return BoolCast(this.props.Document.isTemplate) && this.props.DataDoc ? this.props.DataDoc : this.props.Document; }
private _reactionDisposer?: IReactionDisposer;