From dffb47ffeffe90791586d7fa51320267767939de Mon Sep 17 00:00:00 2001 From: j Date: Sat, 24 Jun 2023 14:28:46 +0530 Subject: [PATCH] avoid error if list has not loaded yet --- static/js/folderList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/folderList.js b/static/js/folderList.js index 82aeb9cdc..1c56f669f 100644 --- a/static/js/folderList.js +++ b/static/js/folderList.js @@ -411,7 +411,7 @@ pandora.ui.folderList = function(id, section) { }); }, paste: function() { - pandora.$ui.list.triggerEvent('paste'); + pandora.$ui.list && pandora.$ui.list.triggerEvent('paste'); }, select: function(data) { var list = data.ids.length ? data.ids[0] : '';