From fd96d2da37f5a72bd97093ee374a64c59ffb6282 Mon Sep 17 00:00:00 2001 From: rlx Date: Sun, 17 Jan 2016 14:00:16 +0530 Subject: [PATCH] browser: handle undefined --- static/js/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/browser.js b/static/js/browser.js index d5451b5..933dd74 100644 --- a/static/js/browser.js +++ b/static/js/browser.js @@ -17,7 +17,7 @@ oml.ui.browser = function() { width = Math.round(ratio >= 1 ? size : size * ratio), height = Math.round(ratio <= 1 ? size : size / ratio), sortKey = sort[0].key, - info = Ox.isNull(data[sortKey]) + info = Ox.isNull(data[sortKey]) || Ox.isUndefined(data[sortKey]) ? '' : Ox.contains(['title', 'random'], sortKey) ? (data.author || []).join(', ')