diff options
Diffstat (limited to 'documentation/datamodel')
-rw-r--r-- | documentation/datamodel/datamodel-hierarchical.asciidoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/datamodel/datamodel-hierarchical.asciidoc b/documentation/datamodel/datamodel-hierarchical.asciidoc index 24605adc53..d3ac6fa060 100644 --- a/documentation/datamodel/datamodel-hierarchical.asciidoc +++ b/documentation/datamodel/datamodel-hierarchical.asciidoc @@ -27,7 +27,7 @@ Collection<Project> projects = service.getProjects(); TreeData<Project> data = new TreeData<>(); // add root level items -data.addItems(null, Project::getSubProjects); +data.addItems(null, projects); // add children for the root level items projects.forEach(project -> data.addItems(project, project.getChildren())); |