getPasteIndex might not exist if no edits exist

This commit is contained in:
j 2022-02-15 18:29:17 +01:00
parent 9d124d65af
commit 86de7f6269

View file

@ -559,7 +559,7 @@ pandora.uploadDroppedFiles = function(files) {
var clips, type = getType(items);
if (Ox.isUndefined(callback)) {
callback = index;
index = pandora.$ui.editPanel
index = pandora.$ui.editPanel && pandora.$ui.editPanel.getPasteIndex
? pandora.$ui.editPanel.getPasteIndex()
: void 0;
}