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) {