Skip to content

Commit

Permalink
Add guard-clause to clearDirty method
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-marinescu authored and opengeek committed May 23, 2023
1 parent b16a856 commit 3cb73c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manager/assets/modext/util/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ Ext.override(Ext.form.NumberField, {
Ext.override(Ext.form.BasicForm,{
clearDirty : function(nodeToRecurse){
nodeToRecurse = nodeToRecurse || this;
if (!nodeToRecurse || !nodeToRecurse.items || typeof nodeToRecurse.items.each !== 'function') {
return;
}
nodeToRecurse.items.each(function(f){
if (!f.getValue) return;

Expand Down

0 comments on commit 3cb73c0

Please sign in to comment.