Skip to content

Commit 8f9c31b

Browse files
authored
Fix 'undefined' error if TV under content (#16008)
1 parent b279f57 commit 8f9c31b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/assets/modext/widgets/resource/modx.panel.resource.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Ext.extend(MODx.panel.Resource,MODx.FormPanel,{
268268
}
269269

270270
// We are already on a tab that has an invalid state. No need to switch
271-
if (!tabs.items.items[tabs_index].hidden) {
271+
if (tabs.items.items[tabs_index] && !tabs.items.items[tabs_index].hidden) {
272272
return;
273273
}
274274

0 commit comments

Comments
 (0)