check for user before getting orgs, create default config

This commit is contained in:
Milo Schwartz
2024-10-22 23:58:00 -04:00
parent 6d9731f071
commit 717aa09daa
6 changed files with 49 additions and 29 deletions

View File

@@ -13,6 +13,7 @@ export default async function Page() {
if (!user) {
redirect("/auth/login");
return;
}
let orgs: ListOrgsResponse["orgs"] = [];