]> source.dussan.org Git - nextcloud-server.git/commitdiff
Prevent js error
authorRobin Appelman <icewind@owncloud.com>
Mon, 21 Apr 2014 11:00:29 +0000 (13:00 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 3 Jun 2014 10:42:35 +0000 (12:42 +0200)
settings/js/apps.js

index 2093242032a2ac1845b587f4acb7f906a8f86c3d..f0e40232ee0172be23b80fc27d75e0d1c8099cf9 100644 (file)
@@ -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();
        });