Browse Source

Merge pull request #460 from lepdou/bugfix_visitedApp

bugfix: init user visited apps error when local storage stored app wh…
Jason Song 8 years ago
parent
commit
08048b5a5d

+ 3 - 1
apollo-portal/src/main/resources/static/scripts/controller/IndexController.js

@@ -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);
+                        }
                     });
                 });
         }