Skip to content

Commit

Permalink
fix using private API
Browse files Browse the repository at this point in the history
  • Loading branch information
jelhan committed Mar 10, 2020
1 parent 1025abc commit 7c7249e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addon/components/bs-form/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}));
}
Expand Down

0 comments on commit 7c7249e

Please sign in to comment.