We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d7345c commit 47a93dcCopy full SHA for 47a93dc
1 file changed
adminforth/modules/configValidator.ts
@@ -487,6 +487,10 @@ export default class ConfigValidator implements IConfigValidator {
487
488
col.required = typeof inCol.required === 'boolean' ? { create: inCol.required, edit: inCol.required } : inCol.required;
489
490
+ if (col.name.trim() !== col.name) {
491
+ errors.push(`Resource "${res.resourceId}" column name "${col.name}" must not have leading or trailing spaces`);
492
+ }
493
+
494
// check for duplicate column names
495
if (resInput.columns.findIndex((c) => c.name === col.name) !== inColIndex) {
496
errors.push(`Resource "${res.resourceId}" has duplicate column name "${col.name}"`);
@@ -1273,4 +1277,4 @@ export default class ConfigValidator implements IConfigValidator {
1273
1277
}
1274
1278
});
1275
1279
1276
-}
1280
+}
0 commit comments