int getMinValue fix (#3507)

Fix getMinValue logic that overwrote valid minValue due to wrong null comparison
This commit is contained in:
Anton Slyzhko
2025-10-30 11:29:47 +02:00
committed by GitHub
parent 36f03f0a76
commit 86215d0094
+3 -9
View File
@@ -298,17 +298,11 @@ class IntFieldView extends BaseFieldView {
* @return {number|null}
*/
getMinValue() {
let minValue = this.model.getFieldParam(this.name, 'min') ?? null;
if (minValue != null) {
minValue = null;
}
if ('min' in this.params) {
minValue = this.params.min;
return this.params.min;
}
return minValue;
return this.model.getFieldParam(this.name, 'min') ?? null;
}
// noinspection JSUnusedGlobalSymbols