diff --git a/public/script/app.js b/public/script/app.js index 1dd23f3..85a71ae 100644 --- a/public/script/app.js +++ b/public/script/app.js @@ -509,14 +509,17 @@ angular }); } - // #496 — expand every folder on first load so reviewers see the - // whole tree without clicking through. Folders the user has - // already toggled (state recorded in $scope.opens) are left - // alone, so collapsing a folder still works. + // #496 — expand folders whose children are already loaded so + // reviewers see the whole tree without clicking through. Skip + // folders with empty children to avoid emitting an empty