Fix field description and hint edit being enabled when updating translations for field
This commit is contained in:
@@ -4,10 +4,10 @@ export default function (field, translations, currentLanguage, resource) {
|
||||
const get = getter(translations, currentLanguage, resource)
|
||||
|
||||
field.label = get('label')
|
||||
field.options.description.view = get('meta.description.view')
|
||||
field.options.description.edit = get('meta.description.edit')
|
||||
field.options.hint.view = get('meta.hint.view')
|
||||
field.options.hint.edit = get('meta.hint.edit')
|
||||
field.options.description.view = get('meta.description.view') || undefined
|
||||
field.options.description.edit = get('meta.description.edit') || undefined
|
||||
field.options.hint.view = get('meta.hint.view') || undefined
|
||||
field.options.hint.edit = get('meta.hint.edit') || undefined
|
||||
|
||||
if (field.expressions && Array.isArray(field.expressions.validators)) {
|
||||
for (const vld of field.expressions.validators) {
|
||||
|
||||
Reference in New Issue
Block a user