MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / resolveActiveTabFromRoute

Function resolveActiveTabFromRoute

src/composables/useSessionAnalysisPageBase.ts:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 const messageTypes = ref<Array<{ type: MessageType; count: number }>>([])
38
39 function resolveActiveTabFromRoute(): string {
40 const routeTab = route.query.tab as string | undefined
41 if (routeTab && validTabIds.includes(routeTab)) return routeTab
42 return defaultTab
43 }
44
45 const activeTab = ref(resolveActiveTabFromRoute())
46

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected