diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-07-02 17:15:14 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-07-02 17:15:14 +0200 |
commit | 2f6dc8743e559383d743a57a835575f5753b0668 (patch) | |
tree | 25bf8ca5388f1a7cc8d68f2835c2f9e7a64f9b47 /settings/js | |
parent | 063071b58db926238e895105e13a116a5ceebddb (diff) | |
download | nextcloud-server-2f6dc8743e559383d743a57a835575f5753b0668.tar.gz nextcloud-server-2f6dc8743e559383d743a57a835575f5753b0668.zip |
Fix global app list state
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/apps.js | 5 |
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); |