()
| 10 | * which app-store slices themselves import (avoids a load-time cycle). |
| 11 | */ |
| 12 | export 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 | }; |
no test coverage detected