diff options
| author | bobzel <zzzman@gmail.com> | 2021-02-22 11:15:48 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-02-22 11:15:48 -0500 |
| commit | 628abc9e0498505f4c05261404d37bd830ef8797 (patch) | |
| tree | 97a3856a45f7cfc923f8cfb92eae1b1bbf3d3e82 /src | |
| parent | dcf0389b770b06a04a45b4aedd62bf455d7848e7 (diff) | |
tweak.
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/views/collections/TreeView.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx index 0f69602fa..25bdbaa81 100644 --- a/src/client/views/collections/TreeView.tsx +++ b/src/client/views/collections/TreeView.tsx @@ -118,9 +118,6 @@ export class TreeView extends React.Component<TreeViewProps> { @computed get childDocs() { TraceMobx(); return this.childDocList(this.fieldKey); } @computed get childLinks() { return this.childDocList("links"); } @computed get childAnnos() { return this.childDocList(this.fieldKey + "-annotations"); } - @computed get isCollectionDoc() { - return !StrCast(this.props.document.type).includes(DocumentType.COL) || !DocListCast(this.props.document[this.fieldKey]).length ? false : true; - } @undoBatch openRight = () => this.props.addDocTab(this.doc, "add:right"); @undoBatch move = (doc: Doc | Doc[], target: Doc | undefined, addDoc: (doc: Doc | Doc[]) => boolean) => { @@ -165,8 +162,8 @@ export class TreeView extends React.Component<TreeViewProps> { if (e.buttons === 1 && SnappingManager.GetIsDragging()) { this._header!.current!.className = "treeView-header"; document.removeEventListener("pointermove", this.onDragMove, true); - document.addEventListener("pointermove", this.onDragMove, true); document.removeEventListener("pointerup", this.onDragUp, true); + document.addEventListener("pointermove", this.onDragMove, true); document.addEventListener("pointerup", this.onDragUp, true); } } |
