avoid 'Cannot convert undefined or null to object' on android if device is rotated during initial load

This commit is contained in:
j 2023-06-24 16:03:16 +05:30
parent 068293050e
commit 64b8967ded
1 changed files with 1 additions and 1 deletions

View File

@ -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'