Skip to content

Commit 7d1fa97

Browse files
committed
fix: enhance required field validation to check for empty record values
1 parent 3ca0139 commit 7d1fa97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class AdminForth implements IAdminForth {
243243
? column.required[mode]
244244
: true;
245245

246-
if (!required) continue;
246+
if (!required && !record[column.name]) continue;
247247

248248
let error = null;
249249
if (column.isArray?.enabled) {

0 commit comments

Comments
 (0)