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

feat: make omim search case insensitive (#1788) #1806

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/ext/reev-frontend-lib
3 changes: 1 addition & 2 deletions frontend/src/cases/components/CaseDetail/CardTerms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ const fetchTermLabels = async (terms) => {
if (term.startsWith('HP:')) {
results = await vigunoClient.resolveHpoTermById(term)
} else if (term.startsWith('OMIM:')) {
const term2 = term.replace('OMIM:', '')
results = await vigunoClient.resolveOmimTermById(term2)
results = await vigunoClient.resolveOmimTermById(term)
}
if (results.result.length) {
termLabels[term] = results[0].label
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/variants/components/HpoTermInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ const fetchHpoTerm = async (query) => {
results = await vigunoClient.resolveHpoTermById(queryArg)
results = results.result
} else if (query.startsWith('OMIM:')) {
const queryArg2 = encodeURIComponent(query.replace('OMIM:', ''))
results = await vigunoClient.resolveOmimTermById(queryArg2)
results = await vigunoClient.resolveOmimTermById(queryArg)
results = results.result
} else {
let results1 = await vigunoClient.queryHpoTermsByName(queryArg)
Expand Down
Loading