avoid error if list has not loaded yet

This commit is contained in:
j 2023-06-24 14:28:46 +05:30
parent 9c3edac263
commit dffb47ffef
1 changed files with 1 additions and 1 deletions

View File

@ -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] : '';