Skip to content

Commit

Permalink
Redirect to valid name. Fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Jun 6, 2023
1 parent b952894 commit 2f6fc0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Autocomplete/AutocompleteOtu.global.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const props = defineProps({
}
})
const loadOtu = ({ id }) => {
const loadOtu = ({ id, otu_valid_id }) => {
router.push({
name: 'otus-id-overview',
params: {
id
id: otu_valid_id || id
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions src/modules/otus/views/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ async function loadInitialData() {
})
}
function loadOtu({ id }) {
function loadOtu({ id, otu_valid_id }) {
router.push({
name: 'otus-id-overview',
params: {
id
id: otu_valid_id || id
}
})
}
Expand Down

0 comments on commit 2f6fc0f

Please sign in to comment.