From 345195e9597266f1ac67f94fec7ce595af5bd304 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 27 Jun 2023 12:30:53 +0530 Subject: [PATCH] more missing panels with early resize --- static/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index 68d77359..1e8c7412 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -3002,7 +3002,7 @@ pandora.resizeWindow = function() { pandora.resizeFolders(); if (pandora.user.ui.section == 'items') { if (!pandora.user.ui.item) { - pandora.resizeFilters(pandora.$ui.rightPanel.width()); + pandora.$ui.rightPanel && pandora.resizeFilters(pandora.$ui.rightPanel.width()); if (pandora.user.ui.listView == 'clips') { var clipsItems = pandora.getClipsItems(), previousClipsItems = pandora.getClipsItems( @@ -3064,7 +3064,7 @@ pandora.resizeWindow = function() { } } } else if (pandora.user.ui.section == 'documents') { - pandora.resizeFilters(pandora.$ui.documentPanel.width()); + pandora.$ui.documentPanel && pandora.resizeFilters(pandora.$ui.documentPanel.width()); if (pandora.user.ui.document) { pandora.$ui.document && pandora.$ui.document.update(); } else {