diff options
| author | monoguitari <113245090+monoguitari@users.noreply.github.com> | 2023-02-22 17:48:10 -0500 |
|---|---|---|
| committer | monoguitari <113245090+monoguitari@users.noreply.github.com> | 2023-02-22 17:48:10 -0500 |
| commit | 3a1d41fdc7546c8edf3707ddc03ebe63cf5f91a9 (patch) | |
| tree | d79e3b45c3d564ba66b13879affc548f68290d85 /src/client/views/collections/CollectionTreeView.tsx | |
| parent | f69406d8566fc0e66597e343ef9b7e9eb893556c (diff) | |
| parent | 88706e3fcd42829a5c53cfce96a98a4a227ba57f (diff) | |
Merge branch 'master' into menushortcuts-jesus
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 456f2a13d..330e116d1 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -265,7 +265,7 @@ export class CollectionTreeView extends CollectionSubView<Partial<collectionTree const dropAction = StrCast(this.doc.childDropAction) as dropActionType; const addDoc = (doc: Doc | Doc[], relativeTo?: Doc, before?: boolean) => this.addDoc(doc, relativeTo, before); const moveDoc = (d: Doc | Doc[], target: Doc | undefined, addDoc: (doc: Doc | Doc[]) => boolean) => this.props.moveDocument?.(d, target, addDoc) || false; - if (this.treeChildren.length < this._renderCount) setTimeout(action(() => (this._renderCount = Math.min(this.treeChildren.length, this._renderCount + 20)))); + if (this._renderCount < this.treeChildren.length) setTimeout(action(() => (this._renderCount = Math.min(this.treeChildren.length, this._renderCount + 20)))); return TreeView.GetChildElements( this.treeChildren, this, |
