From 0a9947dbb9f0fa6713ed5cb0940ff4868ad90f47 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 5 May 2019 07:38:32 -0700 Subject: [PATCH] No need to get unstable config this is now handled in the backend --- src/views/appstore.js | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/views/appstore.js b/src/views/appstore.js index 09df3bf17..6b2b7461a 100644 --- a/src/views/appstore.js +++ b/src/views/appstore.js @@ -289,22 +289,15 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca }; function getAppList(callback) { - Client.getUnstableAppsConfig(function (error, unstable) { - if (error) console.error('Error getting unstable apps config. Falling back to only stable apps.', error); + Client.getAppstoreApps(function (error, apps) { + if (error) return callback(error); - // stash this for search lookups - $scope.unstableApps = error ? false : unstable; - - Client.getAppstoreApps(function (error, apps) { - if (error) return callback(error); - - // ensure we have a tags property for further use - apps.forEach(function (app) { - if (!app.manifest.tags) app.manifest.tags = []; - }); - - return callback(null, apps); + // ensure we have a tags property for further use + apps.forEach(function (app) { + if (!app.manifest.tags) app.manifest.tags = []; }); + + return callback(null, apps); }); }