diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-06-26 09:08:13 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-06-26 09:08:13 -0400 |
| commit | f089dba7a271512bcebca2741f2f4f31243ffd47 (patch) | |
| tree | 29c2d399e96f4d15b3d3ca594acc8d864964d02a /src/client/views/collections/CollectionTreeView.tsx | |
| parent | 40884e159b436307aa30c02b5754c6f52fc1266f (diff) | |
fixed treeview drag drop. fixed isAnnotationOverlay
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index e93faa502..d33a4786c 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -85,7 +85,7 @@ class TreeView extends React.Component<TreeViewProps> { return keyList.length ? keyList[0] : "data"; } - @computed get dataDoc() { return this.props.dataDoc; } + @computed get dataDoc() { return BoolCast(this.props.document.isTemplate) ? this.props.dataDoc : this.props.document; } protected createTreeDropTarget = (ele: HTMLDivElement) => { this._treedropDisposer && this._treedropDisposer(); |
