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

ReferenceRefresher : Add check on field shouldRemoveDuplicates method #652

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

armellarcier
Copy link
Contributor

Fixes #649

@armellarcier armellarcier reopened this Sep 2, 2015
@armellarcier
Copy link
Contributor Author

The tests fail... It doesn't on my end.

@fzaninotto
Copy link
Member

Nope, Travis rebuilds everything from scratch, you never have to commit build files.

@@ -11,7 +11,7 @@ class ReferenceRefresher {
.then(r => r[field.name()])
.then(results => this._transformRecords(field, results));

if (field.type() === 'reference_many' || field.type() === 'choices') {
if (field.type() === 'reference_many' || field.type() === 'choices' || ( field.shouldRemoveDuplicates && field.shouldRemoveDuplicates() ) ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method doesn't exist in current admin-config. If you're depending on a change from another library, you must update the package.json to mention the dependency.

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