From 7c7249ee2a3acbe6b98411ffd9aacecb75d1b36d Mon Sep 17 00:00:00 2001 From: Jeldrik Hanschke Date: Tue, 10 Mar 2020 22:54:29 +0100 Subject: [PATCH] fix using private API --- addon/components/bs-form/element.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addon/components/bs-form/element.js b/addon/components/bs-form/element.js index ca17b97..d22d26b 100755 --- a/addon/components/bs-form/element.js +++ b/addon/components/bs-form/element.js @@ -4,12 +4,11 @@ import { A } from '@ember/array'; import BsFormElement from 'ember-bootstrap/components/bs-form/element'; export default BsFormElement.extend({ - hasValidator: notEmpty('model.validate'), setupValidations() { let key = `model.error.${this.get('property')}.validation`; - defineProperty(this, 'errors', computed(`${key}.[]`, function() { + defineProperty(this, 'errors', computed(`model._errors`, function() { return A(this.get(key)); })); }