Skip to content

Commit d329a02

Browse files
committed
version is OBPv6.0.0 by default
1 parent 63bec0d commit d329a02

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/SearchNav.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ onBeforeMount(async () => {
9393
activeKeys.value = Object.keys(groups.value)
9494
sortedKeys.value = activeKeys.value.sort()
9595
await initializeAPICollections()
96-
setTabActive(route.params.id)
96+
setTabActive(route.query.operationid)
9797
let element = document.getElementById("selected-api-version")
9898
if (element !== null) {
9999
const totalRows = Object.values(groups.value).reduce((acc, currentValue) => acc + currentValue.length, 0)
@@ -136,7 +136,7 @@ const countApis = () => {
136136
const routeToFirstAPI = () => {
137137
let element
138138
const elements = document.getElementsByClassName('api-router-link')
139-
const id = route.params.id
139+
const id = route.query.operationid
140140
for (const el of elements) {
141141
if (el.id === id) {
142142
element = el

src/obp/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ import { DEFAULT_OBP_API_VERSION } from '../../shared-constants'
3030

3131
// Always use v5.1.0 for application infrastructure - stable and debuggable
3232
export const OBP_API_VERSION = DEFAULT_OBP_API_VERSION
33+
// Default to showing v6.0.0 documentation in the UI (can be overridden by env var)
3334
export const OBP_API_DEFAULT_RESOURCE_DOC_VERSION =
34-
import.meta.env.VITE_OBP_API_DEFAULT_RESOURCE_DOC_VERSION ?? `OBP${DEFAULT_OBP_API_VERSION}`
35+
import.meta.env.VITE_OBP_API_DEFAULT_RESOURCE_DOC_VERSION ?? 'OBPv6.0.0'
3536
const default_collection_name = 'Favourites'
3637

3738
export async function serverStatus(): Promise<any> {

0 commit comments

Comments
 (0)