aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/datamodel/datamodel-hierarchical.asciidoc
diff options
context:
space:
mode:
authortmattsso <thomas@vaadin.com>2017-07-13 11:18:09 +0300
committerIlia Motornyi <elmot@vaadin.com>2017-07-13 11:18:09 +0300
commit26119ae73147cc57801bb4f6ec3481686bcd703f (patch)
tree250d36ff89dc7c4fe7d31fdb4727746d51e9f9e7 /documentation/datamodel/datamodel-hierarchical.asciidoc
parentc1aef3c50b540230958f839cd8eabb635e4f0a73 (diff)
downloadvaadin-framework-26119ae73147cc57801bb4f6ec3481686bcd703f.tar.gz
vaadin-framework-26119ae73147cc57801bb4f6ec3481686bcd703f.zip
Fix hierarchical dataprovider example code bug
Diffstat (limited to 'documentation/datamodel/datamodel-hierarchical.asciidoc')
-rw-r--r--documentation/datamodel/datamodel-hierarchical.asciidoc2
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()));