Add template edit form skeleton

This commit is contained in:
Marliana Lara
2019-06-25 10:51:25 -04:00
parent 7b3e5cd8d5
commit 463357c81e
10 changed files with 337 additions and 32 deletions

View File

@@ -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;