Fixes: U4-6168 Custom Section is not showing correctly in 7.2 if custom tree is empty

This commit is contained in:
Shannon
2015-02-13 12:35:57 +11:00
parent bcba12abc8
commit 15c36a63d3
2 changed files with 9 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ function NavigationController($scope, $rootScope, $location, $log, $routeParams,
//Listen for section state changes
eventsService.on("appState.treeState.changed", function (e, args) {
var f = args;
if(args.value.root && args.value.root.children.length === 0){
if (args.value.root && args.value.root.metaData.containsTrees === false) {
$rootScope.emptySection = true;
}else{
$rootScope.emptySection = false;