Skip to content

Commit 4a153ee

Browse files
committed
Add guard-clause to clearDirty method (#16404)
1 parent eedfc2e commit 4a153ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manager/assets/modext/modx.jsgrps-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

manager/assets/modext/util/utilities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Ext.override(Ext.form.NumberField, {
8282
Ext.override(Ext.form.BasicForm,{
8383
clearDirty : function(nodeToRecurse){
8484
nodeToRecurse = nodeToRecurse || this;
85-
nodeToRecurse.items.each(function(f){
85+
nodeToRecurse?.items?.each?.(function(f){
8686
if (!f.getValue) return;
8787

8888
if(f.items){

0 commit comments

Comments
 (0)