From f77e68f1a9977fc9e13ed8538e23c417f57b2672 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 1 Mar 2021 17:56:16 +0100 Subject: [PATCH] Fix type error --- www/settings/inner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/settings/inner.js b/www/settings/inner.js index 6ee8d4854..82e3086e2 100644 --- a/www/settings/inner.js +++ b/www/settings/inner.js @@ -1568,6 +1568,7 @@ define([ .appendTo(APP.$leftside); APP.$usage = $('
', { 'class': 'usage' }).appendTo(APP.$leftside); var active = privateData.category || 'account'; + if (!categories[active]) { active = 'account'; } Object.keys(categories).forEach(function(key) { var $category = $('
', { 'class': 'cp-sidebarlayout-category',