From 11c8bb907693b15cd01765e01bd41070fdb6370c Mon Sep 17 00:00:00 2001 From: j Date: Sat, 8 Jul 2023 15:16:06 +0530 Subject: [PATCH] avoid error if switching quickly between videos and edits --- 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 1c56f669..8f1e1833 100644 --- a/static/js/folderList.js +++ b/static/js/folderList.js @@ -377,7 +377,7 @@ pandora.ui.folderList = function(id, section) { } }, init: function(data) { - if (pandora.site.sectionFolders[section][i]) { + if (pandora.site.sectionFolders[section][i] && pandora.$ui.folder[i] && pandora.$ui.folderList[id]) { pandora.site.sectionFolders[section][i].items = data.items; pandora.$ui.folder[i].$content.css({ height: (data.items || 1) * 16 + 'px'