summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-21 13:00:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-03 12:42:35 +0200
commit727277945670f339e91d0f6aef618b9cf43618d2 (patch)
tree3f038f003c89bb2fd49880ec63200dbe70fd1ec4 /settings
parentc09852e0061fa40f37acd89cbca257a56e337afb (diff)
downloadnextcloud-server-727277945670f339e91d0f6aef618b9cf43618d2.tar.gz
nextcloud-server-727277945670f339e91d0f6aef618b9cf43618d2.zip
Prevent js error
Diffstat (limited to 'settings')
-rw-r--r--settings/js/apps.js4
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();
});