diff --git a/src/createFieldsStore.js b/src/createFieldsStore.js index 3b887a04..2a9306bf 100644 --- a/src/createFieldsStore.js +++ b/src/createFieldsStore.js @@ -84,10 +84,8 @@ class FieldsStore { } getFieldMeta(name) { - if (!this.fieldsMeta[name]) { - this.fieldsMeta[name] = [{}]; - } - return this.fieldsMeta[name][this.fieldsMeta[name].length - 1]; + this.fieldsMeta[name] = this.fieldsMeta[name] || []; + return this.fieldsMeta[name][this.fieldsMeta[name].length - 1] || {}; } getValueFromFields(name, fields) {