From 268fb559d9eaf1b45e77e6d49d4174bcf3fd987b Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 4 Aug 2013 11:30:02 +0000 Subject: [PATCH] fix getType test --- 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 90697afa8..09f810de8 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -424,7 +424,7 @@ pandora.createLinks = function($element) { function getType(items) { var item = Ox.isArray(items[0]) ? items[0][0] : items[0]; - return Ox.contains(item, '/') ? 'clip' : 'item'; + return item && Ox.contains(item, '/') ? 'clip' : 'item'; }; function removeItems(items, target, callback) {