Skip to content

Correct vocabulary for person counts is used#2860

Merged
chrisknoll merged 3 commits intomasterfrom
issue-2859-fix_vocabulary_selection
May 23, 2023
Merged

Correct vocabulary for person counts is used#2860
chrisknoll merged 3 commits intomasterfrom
issue-2859-fix_vocabulary_selection

Conversation

@ssuvorov-fls
Copy link
Contributor

fixes #2859

@chrisknoll chrisknoll self-assigned this May 23, 2023
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
@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