diff --git a/static/js/utils.js b/static/js/utils.js index 40a90a36e..b4b82ce97 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -439,12 +439,7 @@ pandora.createLinks = function($element) { pandora.api.addClips({ clips: pandora.getClipData(items), edit: target, - index: pandora.user.ui.edits[pandora.user.ui.edit].selection.length - ? Ox.getObjectById( - pandora.$ui.editPanel.options('clips'), - pandora.user.ui.edits[pandora.user.ui.edit].selection[0] - ).index - : void 0 + index: pandora.$ui.editPanel.getPasteIndex() }, 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)));