Skip to content

Commit

Permalink
rm deprecation warning and support for legacy input arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
stopfstedt committed Oct 30, 2024
1 parent 48a01df commit 5ef2644
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/ilios-common/addon/components/validation-error.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Component from '@glimmer/component';
import { cached } from '@glimmer/tracking';
import { deprecate } from '@ember/debug';
import { TrackedAsyncData } from 'ember-async-data';

export default class ValidationError extends Component {
Expand All @@ -10,22 +9,6 @@ export default class ValidationError extends Component {
}

get errors() {
if (this.args.errors) {
deprecate(
`Passing @errors to ValidationError is deprecated, use @errorsFor instead.`,
false,
{
id: 'common.validation-error-error-arg',
for: 'ilios-common',
since: {
available: '87.1.0',
enabled: '87.1.0',
},
until: '88.0.0',
},
);
return this.args.errors;
}
return this.errorsForData.isResolved ? this.errorsForData.value : [];
}
}

0 comments on commit 5ef2644

Please sign in to comment.