mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-15 01:16:38 +00:00
http only works, and added redirect middleware
This commit is contained in:
@@ -28,11 +28,10 @@ export default async function Page(props: {
|
||||
if (res && res.data.data.orgs) {
|
||||
orgs = res.data.data.orgs;
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
|
||||
if (!orgs.length) {
|
||||
redirect("/setup");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user