bugfix: init user visited apps error when local storage stored app wh…
@@ -106,7 +106,9 @@ function IndexController($scope, $window, toastr, AppUtil, AppService, UserServi
userVisitedApps.forEach(function (appId) {
var app = appIdMapApp[appId];
- $scope.visitedApps.push(app);
+ if (app){
+ $scope.visitedApps.push(app);
+ }
});
}