Skip to content

Commit

Permalink
Add guard-clause to clearDirty method [2.x]
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-marinescu authored and opengeek committed Mar 22, 2024
1 parent f7974d1 commit 37b5dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/assets/modext/util/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Ext.override(Ext.form.NumberField, {
Ext.override(Ext.form.BasicForm,{
clearDirty : function(nodeToRecurse){
nodeToRecurse = nodeToRecurse || this;
nodeToRecurse.items.each(function(f){
nodeToRecurse?.items?.each?.(function(f){
if (!f.getValue) return;

if(f.items){
Expand Down

0 comments on commit 37b5dc4

Please sign in to comment.