From 0d70326aa87b5a968fa3ffbf21c9237099e1831c Mon Sep 17 00:00:00 2001 From: j Date: Sat, 10 Jun 2023 12:49:48 +0100 Subject: [PATCH] fallback to empty string not undefined --- static/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index 43eb0368a..7b86670c3 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1165,7 +1165,7 @@ pandora.formatDocumentKey = function(key, data, size) { value.css({width: size * 0.75 + 'px'}); } } else { - value = data[key.id]; + value = data[key.id] || ''; if (key.id == 'extension') { value = value.toUpperCase(); } else if (key.id == 'dimensions') {