From 86de7f626905b01d79a6a797e0ea8ca28ef403a3 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 15 Feb 2022 18:29:17 +0100 Subject: [PATCH] getPasteIndex might not exist if no edits exist --- 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 2b6833f7..067822e5 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -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; }