MCPcopy Create free account
hub / github.com/bytebase/bytebase / resolveWorkspaceName

Function resolveWorkspaceName

frontend/src/react/lib/workspace.ts:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 * which app-store slices themselves import (avoids a load-time cycle).
11 */
12export const resolveWorkspaceName = (): string | undefined => {
13 const workspaceID =
14 new URLSearchParams(window.location.search).get("workspace") ?? undefined;
15 const workspaceNameFromQuery = workspaceID
16 ? `workspaces/${workspaceID}`
17 : undefined;
18 return (
19 useAppStore.getState().workspaceResourceName() || workspaceNameFromQuery
20 );
21};

Callers 9

trySigninFunction · 0.90
sendCodeFunction · 0.90
submitCodeFunction · 0.90
triggerAuthCallbackFunction · 0.90
SigninPageFunction · 0.90
onSubmitFunction · 0.90
challengeFunction · 0.90
resendCodeFunction · 0.90
onConfirmFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected