diff options
author | bob <bcz@cs.brown.edu> | 2019-06-26 12:56:22 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-26 12:56:22 -0400 |
commit | 084dd6d9b0ad51133025ba6bd2702fc44b1b6c31 (patch) | |
tree | 323c734acf686a71ed78b10c336e8c0c25c2837d /src/client/views/nodes/ImageBox.tsx | |
parent | f089dba7a271512bcebca2741f2f4f31243ffd47 (diff) |
fixes to datadoc usage. fixed tree view for textboxes.
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index 0da774db1..0e6c1ee19 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -46,7 +46,7 @@ export class ImageBox extends DocComponent<FieldViewProps, ImageDocument>(ImageD private dropDisposer?: DragManager.DragDropDisposer; - @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; } protected createDropTarget = (ele: HTMLDivElement) => { |