Skip to content
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

Keep derive EmberArray proxy instead of degrading #1160

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

allthesignals
Copy link
Collaborator

Fixes bug in /data route where attempt was made to call .uniqBy on a plain array.

Originally, we were "degrading" the derived EmberArray to a plain array (.toArray()). This used to work because Ember prototype extensions were still a thing. But those are no more.

Originally .toArray may have been used by force of habit or some vestigial reason.

This change removes the .toArray call and keeps the derived EmberArray proxy which includes the .uniqBy method.

@allthesignals allthesignals requested a review from a team as a code owner December 6, 2023 13:47
Copy link

netlify bot commented Dec 6, 2023

Deploy Preview for labs-zola failed.

Name Link
🔨 Latest commit f816f68
🔍 Latest deploy log https://app.netlify.com/sites/labs-zola/deploys/65707b63a875720008326577

@TylerMatteo TylerMatteo merged commit 35ea45b into develop Dec 6, 2023
1 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants