summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-07-02 17:15:14 +0200
committerVincent Petry <pvince81@owncloud.com>2015-07-02 17:15:14 +0200
commit2f6dc8743e559383d743a57a835575f5753b0668 (patch)
tree25bf8ca5388f1a7cc8d68f2835c2f9e7a64f9b47 /settings/js
parent063071b58db926238e895105e13a116a5ceebddb (diff)
downloadnextcloud-server-2f6dc8743e559383d743a57a835575f5753b0668.tar.gz
nextcloud-server-2f6dc8743e559383d743a57a835575f5753b0668.zip
Fix global app list state
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/apps.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 7849e1b7573..d1de3d727c0 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -86,11 +86,12 @@ OC.Settings.Apps = OC.Settings.Apps || {
}), {
type:'GET',
success: function (apps) {
- var appList = _.map(_.indexBy(apps.apps, 'id'), function(app) {
+ var appListWithIndex = _.indexBy(apps.apps, 'id');
+ OC.Settings.Apps.State.apps = appListWithIndex;
+ var appList = _.map(appListWithIndex, function(app) {
// default values for missing fields
return _.extend({level: 0}, app);
});
- OC.Settings.Apps.State.apps = appList;
var source = $("#app-template").html();
var template = Handlebars.compile(source);