diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-04-21 13:00:29 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-03 12:42:35 +0200 |
commit | 727277945670f339e91d0f6aef618b9cf43618d2 (patch) | |
tree | 3f038f003c89bb2fd49880ec63200dbe70fd1ec4 /settings | |
parent | c09852e0061fa40f37acd89cbca257a56e337afb (diff) | |
download | nextcloud-server-727277945670f339e91d0f6aef618b9cf43618d2.tar.gz nextcloud-server-727277945670f339e91d0f6aef618b9cf43618d2.zip |
Prevent js error
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/apps.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 2093242032a..f0e40232ee0 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -277,7 +277,9 @@ OC.Settings.Apps = OC.Settings.Apps || { $(document).ready(function(){ $('#app-navigation ul li').each(function(index,li){ var app = OC.get('appData_'+$(li).data('id')); - app.groups= $(li).data('groups') || []; + if (app) { + app.groups= $(li).data('groups') || []; + } $(li).data('app',app); $(this).find('span.hidden').remove(); }); |