fix: quick connect not working

This commit is contained in:
Prayag Prajapati committed 2024-07-25 10:32:46 +05:30
1 parent b59e147a39
commit df91d4a744
17 files changed
+429 -428

No files matched your search

+4 -1
View File
@@ -5,7 +5,10 @@ export const Route = createFileRoute("/_api/login")({
beforeLoad: async ({ context, location }) => {
if (location.pathname === "/login") {
const api = context.api;
console.log(api);
if (!api) {
console.info("Awaiting Api generation.");
return;
}
const publicUsers = (await getUserApi(api).getPublicUsers()).data;
if (publicUsers.length > 0) {
throw redirect({ to: "/login/list" });