diff --git a/static/js/utils.js b/static/js/utils.js index 293092414..fe2962711 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -446,7 +446,7 @@ pandora.createLinks = function($element) { pandora.api.addClips({ clips: pandora.getClipData(items), edit: target, - index: pandora.$ui.editPanel.getPasteIndex() + index: pandora.$ui.editPanel ? pandora.$ui.editPanel.getPasteIndex() : null }, function(result) { // adding clips creates new ids, so mutate items in history items.splice.apply(items, [0, items.length].concat(pandora.getClipItems(result.data.clips)));