-
Notifications
You must be signed in to change notification settings - Fork 355
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
Check for undefined attributeBindings #901
Conversation
55b2bfa
to
0f5367f
Compare
@kpfefferle is this for Ember 4.0? Can you ensure we have coverage of a reproduction? |
@mixonic This happened in an app running Ember 3.27. This is the sort of thing that would likely be caught in a typed codebase as TS would notice that you are calling Do you have a suggestion how to test this case besides running our test suite against a production build (which then would drop the |
@kpfefferle we can use a production build of Ember but force the Let me take a stab at adding it to the build on this PR. I'd really like to make sure this has coverage. |
Hi, is there any update on this? We have a couple of blocker bugs in beta and staging that prevents all tables from rendering data and looks like it could be fixed by this PR. |
c276600
to
3ad7737
Compare
3ad7737
to
4423bdf
Compare
I was unable to write a test for this as ember-test-selectors itself causes I added a comment explaining the patch and how it relates to tests, and I also did add a production build to the test suite here because why not. |
Included in 3.0.2 🎉 |
Co-authored-by: Matthew Beale <matt.beale@addepar.com>
When we deploy our application using v3.0.2-3, we see the following console error:
The stack trace points to
ember-table/addon/components/ember-tbody/component.js
Line 273 in 06ad94f
This PR adds an additional condition to check that
this.attributeBindings
is defined before calling.includes()
on it. This fixes the error we see in our deployed application.