From 727277945670f339e91d0f6aef618b9cf43618d2 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 21 Apr 2014 13:00:29 +0200 Subject: [PATCH] Prevent js error --- settings/js/apps.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/settings/js/apps.js b/settings/js/apps.js index 2093242032..f0e40232ee 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(); });