🚧 WIP: copy command bar from existing PR

This commit is contained in:
Fred KISSIE
2026-06-11 23:46:11 +02:00
parent 3e977ba00d
commit 444d293a29
11 changed files with 986 additions and 39 deletions
+3 -1
View File
@@ -21,9 +21,11 @@ export default async function Page(props: {
searchParams: Promise<{
redirect: string | undefined;
t: string | undefined;
orgs?: string | undefined;
}>;
}) {
const params = await props.searchParams; // this is needed to prevent static optimization
const showOrgPicker = params.orgs === "1";
const env = pullEnv();
@@ -106,7 +108,7 @@ export default async function Page(props: {
}
}
if (targetOrgId) {
if (targetOrgId && !showOrgPicker) {
return <RedirectToOrg targetOrgId={targetOrgId} />;
}