Commit 03b0da66 by lepdou

fix when localStorage visited apps empty

parent 6b69a787
......@@ -36,7 +36,7 @@ index_module.controller('IndexController', ['$scope', '$window', 'toastr', 'AppS
function sortApps(sourceApps) {
var visitedApps = JSON.parse(localStorage.getItem(VISITED_APPS_STORAGE_KEY));
if (!visitedApps){
return;
return sourceApps;
}
var existedVisitedAppsMap = {};
visitedApps.forEach(function (app) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment