diff --git a/src/FormularioField.vue b/src/FormularioField.vue index 94c4a36..b628571 100644 --- a/src/FormularioField.vue +++ b/src/FormularioField.vue @@ -243,7 +243,7 @@ export default class FormularioField extends Vue { */ public setErrors (errors: string[]): void { if (!this.errorsDisabled) { - this.localErrors = arrayify(errors) as string[] + this.localErrors = errors } } diff --git a/test/unit/FormularioFieldGroup.test.js b/test/unit/FormularioFieldGroup.test.js index 0dd842f..3851b4a 100644 --- a/test/unit/FormularioFieldGroup.test.js +++ b/test/unit/FormularioFieldGroup.test.js @@ -83,7 +83,7 @@ describe('FormularioFieldGroup', () => { test('errors are set for grouped fields', async () => { const wrapper = mount(FormularioForm, { - propsData: { fieldsErrors: { 'address.street': 'Test error' } }, + propsData: { fieldsErrors: { 'address.street': ['Test error'] } }, slots: { default: `