From 64b8967deda7bd64297ff7a9220708679a61bd94 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 24 Jun 2023 16:03:16 +0530 Subject: [PATCH] avoid 'Cannot convert undefined or null to object' on android if device is rotated during initial load --- 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 2e4147db..68d77359 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -2961,7 +2961,7 @@ pandora.resizeFolders = function(section) { : section == 'edits' ? width - 16 : width - 48 ) - 8); - Ox.forEach(pandora.$ui.folderList, function($list, id) { + pandora.$ui.folderList && Ox.forEach(pandora.$ui.folderList, function($list, id) { var pos = Ox.getIndexById(pandora.site.sectionFolders[section], id); pandora.$ui.folder[pos] && pandora.$ui.folder[pos].css({ width: width + 'px'