mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-30 16:21:39 +00:00
fix(tree): Modify the shouldVirtualizeFlatTree function to support virtualization for non-empty trees.
This commit is contained in:
@@ -27,5 +27,5 @@ export function flattenTree(nodes: TreeNode[]): FlatTreeNode[] {
|
||||
}
|
||||
|
||||
export function shouldVirtualizeFlatTree(count: number): boolean {
|
||||
return count >= 100;
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user