Unfold when there's less than 100 nodes to show
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
d104a048d8
commit
31d1b84bb9
|
@ -59,6 +59,9 @@ module.exports = Self => {
|
|||
}
|
||||
|
||||
const leaves = map.get(parentId);
|
||||
|
||||
const maxNodes = 100;
|
||||
if (res.length <= maxNodes)
|
||||
setLeaves(leaves);
|
||||
|
||||
return leaves || [];
|
||||
|
|
Loading…
Reference in New Issue