Skip to content

Commit a83228b

Browse files
Fix blank page when creating dashboard widget (#15987)
1 parent c17b463 commit a83228b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manager/assets/modext/widgets/system/modx.panel.dashboard.widget.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ MODx.panel.DashboardWidget = function(config) {
268268
}
269269
});
270270
MODx.panel.DashboardWidget.superclass.constructor.call(this,config);
271-
Ext.getCmp('modx-extended-form').disable();
271+
var ef = Ext.getCmp('modx-extended-form');
272+
if (ef) {
273+
ef.disable();
274+
}
272275
};
273276
Ext.extend(MODx.panel.DashboardWidget,MODx.FormPanel,{
274277
initialized: false

0 commit comments

Comments
 (0)