From 8ec783866b16ab8bf1457fedc8cf5a99385cf02e Mon Sep 17 00:00:00 2001 From: bfederle Date: Tue, 20 Mar 2012 08:23:10 -0700 Subject: [PATCH] Prevent dashboard from breaking if item value is null --- ui/scripts/ui-custom/dashboard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/scripts/ui-custom/dashboard.js b/ui/scripts/ui-custom/dashboard.js index 9c5b19ccf41..88e635dad2a 100644 --- a/ui/scripts/ui-custom/dashboard.js +++ b/ui/scripts/ui-custom/dashboard.js @@ -46,6 +46,8 @@ } $.each(item, function(arrayKey, arrayValue) { + if (!arrayValue) arrayValue = ''; + var $arrayElem = $li.find('[data-list-item=' + arrayKey + ']'); $arrayElem.each(function() {