Skip to content

Commit

Permalink
Bugfix: dataSearchMaxId() should return id even if no type is specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemorken committed Dec 8, 2023
1 parent 989b782 commit 2400138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/anyModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ anyModel.prototype.dataSearchMaxId = function (data,type,_prev_type)
else
_prev_type = dtype;
if (!dtype)
return -1;
dtype = type;
if (type == dtype)
this.max = Math.max(this.max,max);
}
Expand Down

0 comments on commit 2400138

Please sign in to comment.