mirror of
https://github.com/ansible/awx.git
synced 2026-07-13 17:34:46 -02:30
Add template edit form skeleton
This commit is contained in:
@@ -2,7 +2,7 @@ import { t } from '@lingui/macro';
|
||||
|
||||
export function required (message, i18n) {
|
||||
return value => {
|
||||
if (!value.trim()) {
|
||||
if (typeof value === 'string' && !value.trim()) {
|
||||
return message || i18n._(t`This field must not be blank`);
|
||||
}
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user