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

Correct vocabulary for person counts is used #2860

Merged
merged 3 commits into from May 23, 2023

Conversation

ssuvorov-fls
Copy link
Contributor

fixes #2859

@@ -79,7 +79,7 @@
options: resultSources,
optionsText: 'sourceName',
optionsValue: 'sourceKey',
value: currentResultSource,
value: currentResultSource().sourceKey,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like 1currentResultSource()1 is an observable to a Source object, but should we be binding the dropdown to a full-source object instead of just a observable that stores what the current source selection? I can't tell from this review, but what is in currentResultSource() and should we be updating the 1 field in it (sourceKey) when instead it would make more sense to just store the currentResultSource's key? Maybe this var should be called currentResultSourceKey?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed currentResultSource, now only currentResultSourceKey is used for search

@chrisknoll chrisknoll merged commit 1fa691d into master May 23, 2023
2 checks passed
@delete-merged-branch delete-merged-branch bot deleted the issue-2859-fix_vocabulary_selection branch May 23, 2023 14:54
ssuvorov-fls added a commit that referenced this pull request May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Record Counts shows wrong data source
2 participants