diff --git a/racksdb/web/ui/src/components/ComboBox.vue b/racksdb/web/ui/src/components/ComboBox.vue index 0b18dd9e..6424bcb9 100644 --- a/racksdb/web/ui/src/components/ComboBox.vue +++ b/racksdb/web/ui/src/components/ComboBox.vue @@ -19,7 +19,7 @@ import { import { ChevronUpDownIcon, CheckIcon } from '@heroicons/vue/24/outline' const selectedItem: Ref = ref() -const route = useRouter() +const router = useRouter() const input = ref('') const filteredItem = computed(() => input.value === '' @@ -31,7 +31,7 @@ const filteredItem = computed(() => type itemType = Datacenter | Infrastructure function goToItem(item: string) { - route.push({ + router.push({ name: props.item + 'details', params: { name: item } })