diff --git a/src/components/Autocomplete/AutocompleteOtu.global.vue b/src/components/Autocomplete/AutocompleteOtu.global.vue index 361af95..c94f40d 100644 --- a/src/components/Autocomplete/AutocompleteOtu.global.vue +++ b/src/components/Autocomplete/AutocompleteOtu.global.vue @@ -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 } }) } diff --git a/src/modules/otus/views/Index.vue b/src/modules/otus/views/Index.vue index d7436bb..8686f3e 100644 --- a/src/modules/otus/views/Index.vue +++ b/src/modules/otus/views/Index.vue @@ -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 } }) }