Skip to content

Commit 659732a

Browse files
committed
fix: better message when both showIn.create and fillOnCreate
1 parent 546fef4 commit 659732a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/modules/configValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export default class ConfigValidator implements IConfigValidator {
401401
col.showIn = this.validateAndNormalizeShowIn(resInput, inCol, errors, warnings);
402402

403403
if (col.showIn.create && inCol.fillOnCreate !== undefined) {
404-
errors.push(`Resource "${res.resourceId}" column "${col.name}" is present on crate page and has fillOnCreate`);
404+
errors.push(`Resource "${res.resourceId}" column "${col.name}" is shown on create page but has fillOnCreate. FillOnCreate is not allowed for columns shown on create page. Please either set showIn.create to false or remove fillOnCreate`);
405405
}
406406

407407
// check col.required is boolean or object

0 commit comments

Comments
 (0)