-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: Ember Deprecation - Remove A import from ember/array #25788
Conversation
import { capitalize } from '@ember/string'; | ||
|
||
const DEFAULTS = { | ||
token: null, | ||
rewrap_token: null, | ||
errors: A(), | ||
errors: null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this component (and others with a similar pattern) this.errors
is set to null in the component lifecycle, so null
seems like a reasonable default.
Build Results: |
CI Results: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Looks good once enterprise tests are ✅
Ember-Data 4.12 deprecated the use of
A()
, on ember-data ArrayLike class, so this PR removesA()
instances. filterBy was already replaced in a prior PR