We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5277727 commit 0cf7a4aCopy full SHA for 0cf7a4a
adminforth/index.ts
@@ -315,10 +315,10 @@ class AdminForth implements IAdminForth {
315
return error;
316
}
317
} else {
318
- if (column.minValue !== undefined && record[column.name] < column.minValue) {
+ if (column.minValue !== undefined && record[column.name] && record[column.name] < column.minValue) {
319
return `Value in "${column.name}" must be greater than ${column.minValue}`;
320
321
- if (column.maxValue !== undefined && record[column.name] > column.maxValue) {
+ if (column.maxValue !== undefined && record[column.name] && record[column.name] > column.maxValue) {
322
return `Value in "${column.name}" must be less than ${column.maxValue}`;
323
324
0 commit comments