From 49c2ae367313f07c969c678ad64f007fc665a4ef Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 8 Feb 2017 23:37:48 +0100 Subject: [PATCH] cleanup --- .../directives/components/umbminilistview.directive.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbminilistview.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbminilistview.directive.js index 717caf15ed..1a04eeff65 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbminilistview.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbminilistview.directive.js @@ -103,7 +103,7 @@ angular.forEach(miniListViewsHistory, function(historyItem, index){ // We need to make sure we can compare the two id's. - // Some id's are numbers (1) and others are string numbers. + // Some id's are integers and others are strings. // Members have string ids like "all-members". if(historyItem.node.id.toString() === ancestor.id.toString()) { // load the list view from history @@ -116,11 +116,11 @@ }); if(!found) { - // if we can't find the view in the history - miniListViewsHistory = []; - scope.miniListViews = []; + // if we can't find the view in the history - close the list view + scope.exitMiniListView(); } + // update the breadcrumb makeBreadcrumb(); };