Skip to content

Commit

Permalink
feat: make omim search case insensitive (#1788) (#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo authored Jul 17, 2024
1 parent daaa5a3 commit 95bb7ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
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

0 comments on commit 95bb7ce

Please sign in to comment.