Skip to content

Commit 39a5672

Browse files
Add guard-clause to clearDirty method (#16404)
* Add guard-clause to clearDirty method * Update utilities.js * grunt build --------- Co-authored-by: Jason Coward <[email protected]>
1 parent b16a856 commit 39a5672

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)